org.apache.commons.httpclient.params
public class HttpClientParams extends HttpMethodParams
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
{@link org.apache.commons.httpclient.HttpConnectionManager HTTP connection manager}
class.
|
static String | CONNECTION_MANAGER_TIMEOUT
Sets the timeout in milliseconds used when retrieving an
{@link org.apache.commons.httpclient.HttpConnection HTTP connection} from the
{@link org.apache.commons.httpclient.HttpConnectionManager 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 {@link #getDefaultParams()} as a parent. | |
HttpClientParams(HttpParams defaults)
Creates a new collection of parameters with the given parent.
|
Method Summary | |
---|---|
Class | getConnectionManagerClass()
Returns the default
{@link org.apache.commons.httpclient.HttpConnectionManager HTTP connection manager}
class. |
long | getConnectionManagerTimeout()
Returns the timeout in milliseconds used when retrieving an
{@link org.apache.commons.httpclient.HttpConnection HTTP connection} from the
{@link org.apache.commons.httpclient.HttpConnectionManager 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 {@link org.apache.commons.httpclient.HttpConnectionManager HTTP connection manager}
class to be used der default. |
void | setConnectionManagerTimeout(long timeout)
Sets the timeout in milliseconds used when retrieving an
{@link org.apache.commons.httpclient.HttpConnection HTTP connection} from the
{@link org.apache.commons.httpclient.HttpConnectionManager HTTP connection manager}.
|
This parameter expects a value of type {@link Boolean}.
This parameter expects a value of type {@link Class}.
This parameter expects a value of type {@link Long}.
This parameter expects a value of type {@link Integer}.
This parameter expects a value of type {@link Boolean}.
This parameter expects a value of type {@link 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
Returns: {@link org.apache.commons.httpclient.HttpConnectionManager HTTP connection manager} factory class.
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.
Parameters: clazz {@link org.apache.commons.httpclient.HttpConnectionManager HTTP connection manager} factory class.
Parameters: timeout the timeout in milliseconds