public class HttpMethodConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT |
Constructor and Description |
---|
HttpMethodConfiguration() |
Modifier and Type | Method and Description |
---|---|
HttpMethodConfiguration |
addHeader(String header,
String value) |
HttpMethodConfiguration |
addParam(String param,
String value) |
org.apache.commons.httpclient.params.HttpMethodParams |
asMethodParams(org.apache.commons.httpclient.params.HttpMethodParams defaults) |
org.apache.commons.httpclient.Header[] |
asRequestHeaders() |
int |
getConnectionTimeout() |
Properties |
getHeaders() |
Properties |
getParams() |
Boolean |
getUseDefaultHeaders() |
boolean |
isUseDefaultHeaders() |
static HttpMethodConfiguration |
merge(HttpMethodConfiguration base,
HttpMethodConfiguration local) |
static HttpMethodConfiguration |
merge(HttpMethodConfiguration defaults,
HttpMethodConfiguration base,
HttpMethodConfiguration local) |
HttpMethodConfiguration |
setConnectionTimeout(int connectionTimeout) |
HttpMethodConfiguration |
setHeaders(Properties headers) |
HttpMethodConfiguration |
setParams(Properties params) |
HttpMethodConfiguration |
setUseDefaultHeaders(boolean useDefaultHeaders) |
public static final int DEFAULT_CONNECTION_TIMEOUT
public HttpMethodConfiguration()
public boolean isUseDefaultHeaders()
public HttpMethodConfiguration setUseDefaultHeaders(boolean useDefaultHeaders)
public Boolean getUseDefaultHeaders()
public HttpMethodConfiguration addHeader(String header, String value)
public Properties getHeaders()
public HttpMethodConfiguration setHeaders(Properties headers)
public HttpMethodConfiguration addParam(String param, String value)
public Properties getParams()
public HttpMethodConfiguration setParams(Properties params)
public int getConnectionTimeout()
public HttpMethodConfiguration setConnectionTimeout(int connectionTimeout)
public org.apache.commons.httpclient.params.HttpMethodParams asMethodParams(org.apache.commons.httpclient.params.HttpMethodParams defaults)
public org.apache.commons.httpclient.Header[] asRequestHeaders()
public static HttpMethodConfiguration merge(HttpMethodConfiguration defaults, HttpMethodConfiguration base, HttpMethodConfiguration local)
public static HttpMethodConfiguration merge(HttpMethodConfiguration base, HttpMethodConfiguration local)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.