Since: API Level 1
public interface

ClientPNames

org.apache.http.client.params.ClientPNames
Known Indirect Subclasses

Class Overview

Parameter names for the HttpClient module. This does not include parameters for informational units HttpAuth, HttpCookie, or HttpConn.

Summary

Constants
StringALLOW_CIRCULAR_REDIRECTSDefines whether circular redirects (redirects to the same location) should be allowed.
StringCONNECTION_MANAGER_FACTORYDefines the factory to create a default ClientConnectionManager.
StringCONNECTION_MANAGER_FACTORY_CLASS_NAMEDefines the class name of the default ClientConnectionManager

This parameter expects a value of type String.

StringCOOKIE_POLICYDefines the name of the cookie specification to be used for HTTP state management.
StringDEFAULT_HEADERSDefines the request headers to be sent per default with each request.
StringDEFAULT_HOSTDefines the default host.
StringHANDLE_AUTHENTICATIONDefines whether authentication should be handled automatically.
StringHANDLE_REDIRECTSDefines whether redirects should be handled automatically

This parameter expects a value of type Boolean.

StringMAX_REDIRECTSDefines the maximum number of redirects to be followed.
StringREJECT_RELATIVE_REDIRECTDefines whether relative redirects should be rejected.
StringVIRTUAL_HOSTDefines the virtual host name.

Constants

public static final String ALLOW_CIRCULAR_REDIRECTS

Since: API Level 1

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.

Constant Value: "http.protocol.allow-circular-redirects"

public static final String CONNECTION_MANAGER_FACTORY

Since: API Level 1

Defines the factory to create a default ClientConnectionManager.

This parameters expects a value of type ClientConnectionManagerFactory.

Constant Value: "http.connection-manager.factory-object"

public static final String CONNECTION_MANAGER_FACTORY_CLASS_NAME

Since: API Level 1

Defines the class name of the default ClientConnectionManager

This parameter expects a value of type String.

Constant Value: "http.connection-manager.factory-class-name"

public static final String COOKIE_POLICY

Since: API Level 1

Defines the name of the cookie specification to be used for HTTP state management.

This parameter expects a value of type String.

Constant Value: "http.protocol.cookie-policy"

public static final String DEFAULT_HEADERS

Since: API Level 1

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

This parameter expects a value of type Collection. The collection is expected to contain Headers.

Constant Value: "http.default-headers"

public static final String DEFAULT_HOST

Since: API Level 1

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 HttpHost.

Constant Value: "http.default-host"

public static final String HANDLE_AUTHENTICATION

Since: API Level 1

Defines whether authentication should be handled automatically.

This parameter expects a value of type Boolean.

Constant Value: "http.protocol.handle-authentication"

public static final String HANDLE_REDIRECTS

Since: API Level 1

Defines whether redirects should be handled automatically

This parameter expects a value of type Boolean.

Constant Value: "http.protocol.handle-redirects"

public static final String MAX_REDIRECTS

Since: API Level 1

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.

Constant Value: "http.protocol.max-redirects"

public static final String REJECT_RELATIVE_REDIRECT

Since: API Level 1

Defines whether relative redirects should be rejected.

This parameter expects a value of type Boolean.

Constant Value: "http.protocol.reject-relative-redirect"

public static final String VIRTUAL_HOST

Since: API Level 1

Defines the virtual host name.

This parameter expects a value of type HttpHost.

Constant Value: "http.virtual-host"