Top Description Fields
org.apache.http.client.params

public Interface ClientPNames

Known Direct Subinterfaces
org.apache.http.client.params.AllClientPNames
Annotations
@Deprecated

Deprecated

(4.3) use org.apache.http.client.config.RequestConfig.

Parameter names for HTTP client parameters.
Since
4.0

Field Summary

Modifier and TypeField and Description
public static final String
ALLOW_CIRCULAR_REDIRECTS

Defines whether circular redirects (redirects to the same location) should be allowed.

public static final String
CONN_MANAGER_TIMEOUT

Defines the timeout in milliseconds used when retrieving an instance of org.apache.http.conn.ManagedClientConnection from the org.apache.http.conn.ClientConnectionManager.

public static final String
public static final String
DEFAULT_HEADERS

Defines the request headers to be sent per default with each request.

public static final String
DEFAULT_HOST

Defines the default host.

public static final String
HANDLE_AUTHENTICATION

Defines whether authentication should be handled automatically.

public static final String
HANDLE_REDIRECTS

Defines whether redirects should be handled automatically

This parameter expects a value of type Boolean.

public static final String
MAX_REDIRECTS

Defines the maximum number of redirects to be followed.

public static final String
REJECT_RELATIVE_REDIRECT

Defines whether relative redirects should be rejected.

public static final String
VIRTUAL_HOST

Defines the virtual host to be used in the Host request header instead of the physical host.

Field Detail

ALLOW_CIRCULAR_REDIRECTSback to summary
public static final String ALLOW_CIRCULAR_REDIRECTS

Defines whether circular redirects (redirects to the same location) should be allowed. The HTTP spec is not sufficiently clear whether circular redirects are permitted, therefore optionally they can be enabled

This parameter expects a value of type Boolean.

CONN_MANAGER_TIMEOUTback to summary
public static final String CONN_MANAGER_TIMEOUT

Defines the timeout in milliseconds used when retrieving an instance of org.apache.http.conn.ManagedClientConnection from the org.apache.http.conn.ClientConnectionManager.

This parameter expects a value of type Long.

Since
4.2
CONNECTION_MANAGER_FACTORY_CLASS_NAMEback to summary
public static final String CONNECTION_MANAGER_FACTORY_CLASS_NAME
DEFAULT_HEADERSback to summary
public static final String DEFAULT_HEADERS

Defines the request headers to be sent per default with each request.

This parameter expects a value of type java.util.Collection. The collection is expected to contain org.apache.http.Headers.

DEFAULT_HOSTback to summary
public static final String DEFAULT_HOST

Defines the default host. The default value will be used if the target host is not explicitly specified in the request URI.

This parameter expects a value of type org.apache.http.HttpHost.

HANDLE_AUTHENTICATIONback to summary
public static final String HANDLE_AUTHENTICATION

Defines whether authentication should be handled automatically.

This parameter expects a value of type Boolean.

HANDLE_REDIRECTSback to summary
public static final String HANDLE_REDIRECTS

Defines whether redirects should be handled automatically

This parameter expects a value of type Boolean.

MAX_REDIRECTSback to summary
public static final String MAX_REDIRECTS

Defines the maximum number of redirects to be followed. The limit on number of redirects is intended to prevent infinite loops.

This parameter expects a value of type Integer.

REJECT_RELATIVE_REDIRECTback to summary
public static final String REJECT_RELATIVE_REDIRECT

Defines whether relative redirects should be rejected. HTTP specification requires the location value be an absolute URI.

This parameter expects a value of type Boolean.

VIRTUAL_HOSTback to summary
public static final String VIRTUAL_HOST

Defines the virtual host to be used in the Host request header instead of the physical host.

This parameter expects a value of type org.apache.http.HttpHost.

If a port is not provided, it will be derived from the request URL.