Class HttpClientWrapper
- java.lang.Object
-
- org.sakaiproject.entitybroker.util.http.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 Summary
Constructors Constructor Description 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 theHttpRESTUtils.makeReusableHttpClient(boolean, int, javax.servlet.http.Cookie[])instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.httpclient.HttpClientgetHttpClient()voidresetState()Resets the http client state between requests, this is not necessarily required but might be a good ideavoidshutdown()cleanup and shutdown the http client
-
-
-
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 theHttpRESTUtils.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
-
-