An HTTP "user-agent", containing an
HttpState HTTP state and
one or more
HttpConnection HTTP connections , to which
HttpMethod HTTP methods can be applied.
Creates an instance of HttpClient with a user specified
HttpClientParams parameter set and
HttpConnectionManager HTTP connection manager .
Parameters: params - The HttpClientParams parameters to use. Parameters: httpConnectionManager - The HttpConnectionManager connection managerto use. since: 3.0
Creates an instance of HttpClient with a user specified
HttpConnectionManager HTTP connection manager .
Parameters: httpConnectionManager - The HttpConnectionManager connection managerto use. since: 2.0
Executes the given
HttpMethod HTTP method .
Parameters: method - the HttpMethod HTTP method to execute. the method's response code throws: IOException - If an I/O (transport) error occurs. Some transport exceptionscan be recovered from. throws: HttpException - If a protocol exception occurs. Usually protocol exceptions cannot be recovered from.
Executes the given
HttpMethod HTTP method using custom
HostConfiguration host configuration .
Parameters: hostConfiguration - The HostConfiguration host configuration to use.If null, the host configuration returned by HttpClient.getHostConfiguration will be used. Parameters: method - the HttpMethod HTTP method to execute. the method's response code throws: IOException - If an I/O (transport) error occurs. Some transport exceptionscan be recovered from. throws: HttpException - If a protocol exception occurs. Usually protocol exceptions cannot be recovered from. since: 2.0
Executes the given
HttpMethod HTTP method using the given custom
HostConfiguration host configuration with the given custom
HttpState HTTP state .
Parameters: hostconfig - The HostConfiguration host configuration to use.If null, the host configuration returned by HttpClient.getHostConfiguration will be used. Parameters: method - the HttpMethod HTTP method to execute. Parameters: state - the HttpState HTTP state to use when executing the method.If null, the state returned by HttpClient.getState will be used. the method's response code throws: IOException - If an I/O (transport) error occurs. Some transport exceptionscan be recovered from. throws: HttpException - If a protocol exception occurs. Usually protocol exceptions cannot be recovered from. since: 2.0
Assigns the
HostConfiguration host configuration to use with the
HttpClient.
Parameters: hostConfiguration - The HostConfiguration host configuration to set since: 2.0
setHttpConnectionFactoryTimeout
public synchronized void setHttpConnectionFactoryTimeout(long timeout)(Code)
Assigns the
HttpConnectionManager HTTP connection manager to use with
the HttpClient.
Parameters: httpConnectionManager - The HttpConnectionManager HTTP connection managerto set since: 2.0
public synchronized void setStrictMode(boolean strictMode)(Code)
Defines how strictly the method follows the HTTP protocol specification
(see RFC 2616 and other relevant RFCs).
In the strict mode the method precisely
implements the requirements of the specification, whereas in non-strict mode
it attempts to mimic the exact behaviour of commonly used HTTP agents,
which many HTTP servers expect.
Parameters: strictMode - true for strict mode, false otherwise See Also:HttpClient.isStrictMode()HttpClientParams.setParameter(StringObject)
setTimeout
public synchronized void setTimeout(int newTimeoutInMilliseconds)(Code)