public class HttpMethodConfiguration extends Object
Constructor and Description |
---|
HttpMethodConfiguration() |
Modifier and Type | Method and Description |
---|---|
HttpMethodConfiguration |
addHeader(String header,
String value) |
HttpMethodConfiguration |
addParam(String param,
String value) |
org.apache.http.Header[] |
asRequestHeaders() |
int |
getConnectionTimeout() |
Properties |
getHeaders() |
Properties |
getParams() |
int |
getReadTimeout() |
Boolean |
getUseDefaultHeaders() |
boolean |
isUseDefaultHeaders() |
boolean |
isUsePreemptive() |
HttpMethodConfiguration |
setConnectionTimeout(int connectionTimeout) |
HttpMethodConfiguration |
setHeaders(Properties headers) |
HttpMethodConfiguration |
setParams(Properties params) |
HttpMethodConfiguration |
setReadTimeout(int readTimeout) |
HttpMethodConfiguration |
setUseDefaultHeaders(boolean useDefaultHeaders) |
HttpMethodConfiguration |
setUsePreemptive(boolean usePreemptive) |
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 int getReadTimeout()
public HttpMethodConfiguration setReadTimeout(int readTimeout)
public boolean isUsePreemptive()
public HttpMethodConfiguration setUsePreemptive(boolean usePreemptive)
public org.apache.http.Header[] asRequestHeaders()
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.