public class HttpClientManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_USER_AGENT |
| Constructor and Description |
|---|
HttpClientManager()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponseWrapper |
execute(String methodType,
boolean multipart,
String url,
String charset,
String username,
String password,
Map<String,HttpParamInfo> params,
Map headers) |
org.apache.commons.httpclient.HttpClient |
getHttpClient() |
HttpInfo |
getHttpInfo() |
void |
setCookiePolicy(String cookiePolicy) |
void |
setHttpProxy(String hostName)
Defines HTTP proxy for the client with specified host
|
void |
setHttpProxy(String hostName,
int hostPort)
Defines HTTP proxy for the client with specified host and port
|
void |
setHttpProxyCredentials(String username,
String password,
String host,
String domain)
Defines user credintials for the HTTP proxy server
|
public static final String DEFAULT_USER_AGENT
public void setCookiePolicy(String cookiePolicy)
public void setHttpProxy(String hostName, int hostPort)
hostName - hostPort - public void setHttpProxy(String hostName)
hostName - public void setHttpProxyCredentials(String username, String password, String host, String domain)
username - password - public HttpResponseWrapper execute(String methodType, boolean multipart, String url, String charset, String username, String password, Map<String,HttpParamInfo> params, Map headers)
public org.apache.commons.httpclient.HttpClient getHttpClient()
public HttpInfo getHttpInfo()
Copyright © 2022 WSO2. All rights reserved.