private class ContextHandlingHttpClientTest.TestContextHandler extends Object implements net.shibboleth.utilities.java.support.httpclient.HttpClientContextHandler
| Modifier and Type | Field and Description |
|---|---|
private Throwable |
invokeAfterError |
private Throwable |
invokeBeforeError |
private String |
name |
static String |
TEST_KEY |
| Constructor and Description |
|---|
ContextHandlingHttpClientTest.TestContextHandler(String instanceName) |
ContextHandlingHttpClientTest.TestContextHandler(String instanceName,
Throwable beforeError,
Throwable afterError) |
ContextHandlingHttpClientTest.TestContextHandler(Throwable beforeError,
Throwable afterError) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addValue(HttpClientContext context,
String value) |
void |
invokeAfter(HttpClientContext context,
HttpUriRequest request) |
void |
invokeBefore(HttpClientContext context,
HttpUriRequest request) |
public static final String TEST_KEY
private String name
private Throwable invokeBeforeError
private Throwable invokeAfterError
public ContextHandlingHttpClientTest.TestContextHandler(String instanceName)
public ContextHandlingHttpClientTest.TestContextHandler(Throwable beforeError, Throwable afterError)
public void invokeBefore(HttpClientContext context, HttpUriRequest request) throws IOException
invokeBefore in interface net.shibboleth.utilities.java.support.httpclient.HttpClientContextHandlerIOExceptionpublic void invokeAfter(HttpClientContext context, HttpUriRequest request) throws IOException
invokeAfter in interface net.shibboleth.utilities.java.support.httpclient.HttpClientContextHandlerIOExceptionprivate void addValue(HttpClientContext context, String value)
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.