public class HttpClientWrapper extends Object
| Constructor and 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 the
HttpRESTUtils.makeReusableHttpClient(boolean, int, javax.servlet.http.Cookie[]) instead |
| Modifier and Type | Method and Description |
|---|---|
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
|
public HttpClientWrapper(org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager,
org.apache.commons.httpclient.HttpState initialHttpState)
HttpRESTUtils.makeReusableHttpClient(boolean, int, javax.servlet.http.Cookie[]) insteadpublic org.apache.commons.httpclient.HttpClient getHttpClient()
public void resetState()
public void shutdown()
Copyright © 2007–2018 CARET, University of Cambridge. All rights reserved.