public interface ApacheHttpClientConfig extends ClientConfig
ApacheHttpClient
or ApacheHttpClientHandler
.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_CREDENTIALS_PROVIDER
The credential provider that should be used to retrieve
credentials from a user.
|
static String |
PROPERTY_HANDLE_COOKIES
A value of "true" indicates the client should handle cookies
automatically using HttpClient's default cookie policy.
|
static String |
PROPERTY_HTTP_STATE
The
ApacheHttpClientState of the current client. |
static String |
PROPERTY_INTERACTIVE
A value of "true" indicates that the client should
interactively prompt for credentials should it receive a 401
response.
|
static String |
PROPERTY_PREEMPTIVE_AUTHENTICATION
A value of "true" indicates that a client should send an
authentication request even before the server gives a 401
response.
|
static String |
PROPERTY_PROXY_URI
A value of a URI to configure the proxy host and proxy port to proxy
HTTP requests and responses.
|
PROPERTY_BUFFER_RESPONSE_ENTITY_ON_EXCEPTION, PROPERTY_CHUNKED_ENCODING_SIZE, PROPERTY_CONNECT_TIMEOUT, PROPERTY_FOLLOW_REDIRECTS, PROPERTY_READ_TIMEOUT, PROPERTY_THREADPOOL_SIZE
FEATURE_DISABLE_XML_SECURITY, FEATURE_FORMATTED, FEATURE_PRE_1_4_PROVIDER_PRECEDENCE, FEATURE_XMLROOTELEMENT_PROCESSING
Modifier and Type | Method and Description |
---|---|
ApacheHttpClientState |
getState()
Get the HTTP state.
|
getClasses, getPropertyAsFeature, getSingletons
getFeature, getFeatures, getProperties, getProperty
static final String PROPERTY_INTERACTIVE
Boolean
.
If the property is absent the default value is "false"static final String PROPERTY_HANDLE_COOKIES
Boolean
.
If the property is absent the default value is "false"static final String PROPERTY_CREDENTIALS_PROVIDER
PROPERTY_INTERACTIVE
is set to true.
The value MUST be an instance of CredentialsProvider
. If
the property is absent a default provider will be used.static final String PROPERTY_PREEMPTIVE_AUTHENTICATION
ApacheHttpClient
instance.
If the value of this property is set to "true" default
credientials must be set for the target or proxy.
The value MUST be an instance of Boolean
.
If the property is absent the default value is "false"static final String PROPERTY_PROXY_URI
String
or URI
.
If the property absent then no proxy will be utilized.static final String PROPERTY_HTTP_STATE
ApacheHttpClientState
of the current client.
This is used to maintain authentication credentials.
The value MUST be an instance of ApacheHttpClientState
.ApacheHttpClientState getState()
If no state exists then an instance is created and added
as the property PROPERTY_HTTP_STATE
.
Copyright © 2013 Oracle Corporation. All rights reserved.