Class ContextHandlingHttpClientTest.MockHttpClient
- java.lang.Object
-
- org.apache.http.impl.client.CloseableHttpClient
-
- net.shibboleth.utilities.java.support.httpclient.ContextHandlingHttpClientTest.MockHttpClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.http.client.HttpClient
- Enclosing class:
- ContextHandlingHttpClientTest
private static class ContextHandlingHttpClientTest.MockHttpClient extends org.apache.http.impl.client.CloseableHttpClient
-
-
Constructor Summary
Constructors Constructor Description MockHttpClient()MockHttpClient(Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()protected org.apache.http.client.methods.CloseableHttpResponsedoExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)org.apache.http.conn.ClientConnectionManagergetConnectionManager()Deprecated.org.apache.http.params.HttpParamsgetParams()Deprecated.
-
-
-
Field Detail
-
error
private Throwable error
-
-
Constructor Detail
-
MockHttpClient
public MockHttpClient()
-
MockHttpClient
public MockHttpClient(Throwable throwable)
-
-
Method Detail
-
getParams
@Deprecated public org.apache.http.params.HttpParams getParams()
Deprecated.
-
getConnectionManager
@Deprecated public org.apache.http.conn.ClientConnectionManager getConnectionManager()
Deprecated.
-
close
public void close() throws IOException- Throws:
IOException
-
doExecute
protected org.apache.http.client.methods.CloseableHttpResponse doExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException- Specified by:
doExecutein classorg.apache.http.impl.client.CloseableHttpClient- Throws:
IOExceptionorg.apache.http.client.ClientProtocolException
-
-