Package net.shibboleth.shared.httpclient
Class ContextHandlingHttpClientTest.MockHttpClient
java.lang.Object
net.shibboleth.shared.httpclient.AbstractHttpClient
net.shibboleth.shared.httpclient.ContextHandlingHttpClientTest.MockHttpClient
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hc.client5.http.classic.HttpClient,org.apache.hc.core5.io.ModalCloseable
- Enclosing class:
- ContextHandlingHttpClientTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(org.apache.hc.core5.io.CloseMode closeMode) protected org.apache.hc.core5.http.ClassicHttpResponsedoExecute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) Methods inherited from class net.shibboleth.shared.httpclient.AbstractHttpClient
execute, execute, execute, execute, execute, execute, execute, executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hc.client5.http.classic.HttpClient
executeOpen
-
Field Details
-
error
-
-
Constructor Details
-
MockHttpClient
public MockHttpClient() -
MockHttpClient
-
-
Method Details
-
close
- Throws:
IOException
-
close
public void close(org.apache.hc.core5.io.CloseMode closeMode) -
doExecute
protected org.apache.hc.core5.http.ClassicHttpResponse doExecute(@Nullable org.apache.hc.core5.http.HttpHost target, @Nonnull org.apache.hc.core5.http.ClassicHttpRequest request, @Nullable org.apache.hc.core5.http.protocol.HttpContext context) throws IOException - Specified by:
doExecutein classAbstractHttpClient- Throws:
IOException
-