Class ContextHandlingHttpClientTest.MockCloseableHttpResponse
- java.lang.Object
-
- org.apache.http.message.AbstractHttpMessage
-
- org.apache.http.message.BasicHttpResponse
-
- net.shibboleth.utilities.java.support.httpclient.ContextHandlingHttpClientTest.MockCloseableHttpResponse
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.http.client.methods.CloseableHttpResponse,org.apache.http.HttpMessage,org.apache.http.HttpResponse
- Enclosing class:
- ContextHandlingHttpClientTest
public static class ContextHandlingHttpClientTest.MockCloseableHttpResponse extends org.apache.http.message.BasicHttpResponse implements org.apache.http.client.methods.CloseableHttpResponse
-
-
Constructor Summary
Constructors Constructor Description MockCloseableHttpResponse(org.apache.http.ProtocolVersion ver, int code, String reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
Methods inherited from class org.apache.http.message.BasicHttpResponse
getEntity, getLocale, getProtocolVersion, getReason, getStatusLine, setEntity, setLocale, setReasonPhrase, setStatusCode, setStatusLine, setStatusLine, setStatusLine, toString
-
Methods inherited from class org.apache.http.message.AbstractHttpMessage
addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
MockCloseableHttpResponse
public MockCloseableHttpResponse(org.apache.http.ProtocolVersion ver, int code, String reason)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-