Class 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
    • Field Summary

      • Fields inherited from class org.apache.http.message.AbstractHttpMessage

        headergroup, params
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • 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 interface org.apache.http.HttpMessage

        addHeader, addHeader, containsHeader, getAllHeaders, getFirstHeader, getHeaders, getLastHeader, getParams, getProtocolVersion, headerIterator, headerIterator, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setParams
      • Methods inherited from interface org.apache.http.HttpResponse

        getEntity, getLocale, getStatusLine, setEntity, setLocale, setReasonPhrase, setStatusCode, setStatusLine, setStatusLine, setStatusLine
    • Constructor Detail

      • MockCloseableHttpResponse

        public MockCloseableHttpResponse​(org.apache.http.ProtocolVersion ver,
                                         int code,
                                         String reason)