Class HttpClientWrapper


  • public class HttpClientWrapper
    extends Object
    Allows us to cleanly wrap an httpclient object without exposing the actual object class
    Author:
    Aaron Zeckoski (azeckoski @ gmail.com)
    • Constructor Detail

      • HttpClientWrapper

        public HttpClientWrapper​(org.apache.commons.httpclient.HttpClient httpClient,
                                 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager,
                                 org.apache.commons.httpclient.HttpState initialHttpState)
        This is meant for system use so you should not be constructing this, use the HttpRESTUtils.makeReusableHttpClient(boolean, int, javax.servlet.http.Cookie[]) instead
    • Method Detail

      • getHttpClient

        public org.apache.commons.httpclient.HttpClient getHttpClient()
      • resetState

        public void resetState()
        Resets the http client state between requests, this is not necessarily required but might be a good idea
      • shutdown

        public void shutdown()
        cleanup and shutdown the http client