Package org.webharvest.runtime.web
Class HttpClientManager
- java.lang.Object
-
- org.webharvest.runtime.web.HttpClientManager
-
public class HttpClientManager extends Object
HTTP client functionality.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpClientManager.ProxySettings
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_USER_AGENT
-
Constructor Summary
Constructors Constructor Description HttpClientManager(HttpClientManager.ProxySettings proxySettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponseWrapper
execute(String methodType, Boolean followRedirects, String contentType, String url, String charset, String username, String password, Variable bodyContent, Map<String,HttpParamInfo> params, Map headers, int retryAttempts, long retryDelay, double retryDelayFactor)
org.apache.commons.httpclient.HttpClient
getHttpClient()
HttpInfo
getHttpInfo()
void
setCookiePolicy(String cookiePolicy)
-
-
-
Field Detail
-
DEFAULT_USER_AGENT
public static final String DEFAULT_USER_AGENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpClientManager
@Inject public HttpClientManager(HttpClientManager.ProxySettings proxySettings)
-
-
Method Detail
-
setCookiePolicy
public void setCookiePolicy(String cookiePolicy)
-
execute
public HttpResponseWrapper execute(String methodType, Boolean followRedirects, String contentType, String url, String charset, String username, String password, Variable bodyContent, Map<String,HttpParamInfo> params, Map headers, int retryAttempts, long retryDelay, double retryDelayFactor) throws InterruptedException, UnsupportedEncodingException
-
getHttpInfo
public HttpInfo getHttpInfo()
-
getHttpClient
public org.apache.commons.httpclient.HttpClient getHttpClient()
-
-