org.sakaiproject.entitybroker.util.http
Class HttpClientWrapper

java.lang.Object
  extended by 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
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 Summary
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 void resetState()
          Resets the http client state between requests, this is not necessarily required but might be a good idea
 void shutdown()
          cleanup and shutdown the http client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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



Copyright © 2007-2012 CARET, University of Cambridge. All Rights Reserved.