Class 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 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.
      • 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:
        doExecute in class org.apache.http.impl.client.CloseableHttpClient
        Throws:
        IOException
        org.apache.http.client.ClientProtocolException