org.apache.commons.httpclient.params
public class HttpClientParams extends HttpMethodParams
instances of HttpClient
.
Protocol parameters may be linked together to form a hierarchy. If a particular
parameter value has not been explicitly defined in the collection itself, its
value will be drawn from the parent collection of parameters.
Since: 3.0
Version: $Revision: 354155 $
Field Summary | |
---|---|
static String | ALLOW_CIRCULAR_REDIRECTS
Defines whether circular redirects (redirects to the same location) should be allowed.
|
static String | CONNECTION_MANAGER_CLASS
Defines the default
HTTP connection manager
class.
|
static String | CONNECTION_MANAGER_TIMEOUT
Sets the timeout in milliseconds used when retrieving an
HTTP connection from the
HTTP connection manager .
|
static String | MAX_REDIRECTS
Defines the maximum number of redirects to be followed.
|
static String | PREEMPTIVE_AUTHENTICATION
Defines whether authentication should be attempted preemptively.
|
static String | REJECT_RELATIVE_REDIRECT
Defines whether relative redirects should be rejected.
|
Constructor Summary | |
---|---|
HttpClientParams()
Creates a new collection of parameters with the collection returned
by HttpClientParams as a parent. | |
HttpClientParams(HttpParams defaults)
Creates a new collection of parameters with the given parent.
|
Method Summary | |
---|---|
Class | getConnectionManagerClass()
Returns the default
HTTP connection manager
class. |
long | getConnectionManagerTimeout()
Returns the timeout in milliseconds used when retrieving an
HTTP connection from the
HTTP connection manager .
|
boolean | isAuthenticationPreemptive()
Returns true if authentication should be attempted preemptively,
false otherwise.
|
void | makeLenient() |
void | makeStrict() |
void | setAuthenticationPreemptive(boolean value)
Sets whether authentication should be attempted preemptively.
|
void | setConnectionManagerClass(Class clazz)
Sets HTTP connection manager
class to be used der default. |
void | setConnectionManagerTimeout(long timeout)
Sets the timeout in milliseconds used when retrieving an
HTTP connection from the
HTTP connection manager .
|
This parameter expects a value of type Boolean.
HTTP connection manager
class.
This parameter expects a value of type Class.
HTTP connection
from the
HTTP connection manager
.
This parameter expects a value of type Long.
This parameter expects a value of type Integer.
This parameter expects a value of type Boolean.
This parameter expects a value of type Boolean.
See Also: HttpClientParams
Parameters: defaults the parent collection to defer to, if a parameter is not explictly set in the collection itself.
See Also: HttpClientParams
HTTP connection manager
class.Returns: HTTP connection manager
factory class.
HTTP connection
from the
HTTP connection manager
.
Returns: timeout in milliseconds.
Returns: true if authentication should be attempted preemptively, false otherwise.
Parameters: value true if authentication should be attempted preemptively, false otherwise.
HTTP connection manager
class to be used der default.Parameters: clazz
HTTP connection manager
factory class.
HTTP connection
from the
HTTP connection manager
.
Parameters: timeout the timeout in milliseconds