|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.protocol.HttpCoreContext
org.apache.http.client.protocol.HttpClientContext
@NotThreadSafe public class HttpClientContext
Adaptor class that provides convenience type safe setters and getters
for common HttpContext
attributes used in the course
of HTTP request execution.
Field Summary | |
---|---|
static java.lang.String |
AUTH_CACHE
Attribute name of a AuthCache object
that represents the auth scheme cache. |
static java.lang.String |
AUTHSCHEME_REGISTRY
Attribute name of a Lookup object that represents
the actual AuthSchemeProvider registry. |
static java.lang.String |
COOKIE_ORIGIN
Attribute name of a CookieOrigin
object that represents the actual details of the origin server. |
static java.lang.String |
COOKIE_SPEC
Attribute name of a CookieSpec
object that represents the actual cookie specification. |
static java.lang.String |
COOKIE_STORE
Attribute name of a CookieStore
object that represents the actual cookie store. |
static java.lang.String |
COOKIESPEC_REGISTRY
Attribute name of a Lookup object that represents
the actual CookieSpecProvider registry. |
static java.lang.String |
CREDS_PROVIDER
Attribute name of a CredentialsProvider
object that represents the actual credentials provider. |
static java.lang.String |
HTTP_ROUTE
Attribute name of a RouteInfo
object that represents the actual connection route. |
static java.lang.String |
PROXY_AUTH_STATE
Attribute name of a AuthState
object that represents the actual proxy authentication state. |
static java.lang.String |
REDIRECT_LOCATIONS
Attribute name of a List object that represents a collection of all
redirect locations received in the process of request execution. |
static java.lang.String |
REQUEST_CONFIG
Attribute name of a RequestConfig object that
represents the actual request configuration. |
static java.lang.String |
TARGET_AUTH_STATE
Attribute name of a AuthState
object that represents the actual target authentication state. |
static java.lang.String |
USER_TOKEN
Attribute name of a Object object that represents
the actual user identity such as user Principal . |
Fields inherited from class org.apache.http.protocol.HttpCoreContext |
---|
HTTP_CONNECTION, HTTP_REQ_SENT, HTTP_REQUEST, HTTP_RESPONSE, HTTP_TARGET_HOST |
Fields inherited from interface org.apache.http.protocol.HttpContext |
---|
RESERVED_PREFIX |
Constructor Summary | |
---|---|
HttpClientContext()
|
|
HttpClientContext(org.apache.http.protocol.HttpContext context)
|
Method Summary | ||
---|---|---|
static HttpClientContext |
adapt(org.apache.http.protocol.HttpContext context)
|
|
static HttpClientContext |
create()
|
|
AuthCache |
getAuthCache()
|
|
Lookup<AuthSchemeProvider> |
getAuthSchemeRegistry()
|
|
org.apache.http.cookie.CookieOrigin |
getCookieOrigin()
|
|
org.apache.http.cookie.CookieSpec |
getCookieSpec()
|
|
Lookup<CookieSpecProvider> |
getCookieSpecRegistry()
|
|
org.apache.http.client.CookieStore |
getCookieStore()
|
|
org.apache.http.client.CredentialsProvider |
getCredentialsProvider()
|
|
org.apache.http.conn.routing.RouteInfo |
getHttpRoute()
|
|
AuthStateHC4 |
getProxyAuthState()
|
|
java.util.List<java.net.URI> |
getRedirectLocations()
|
|
RequestConfig |
getRequestConfig()
|
|
AuthStateHC4 |
getTargetAuthState()
|
|
java.lang.Object |
getUserToken()
|
|
|
getUserToken(java.lang.Class<T> clazz)
|
|
void |
setAuthCache(AuthCache authCache)
|
|
void |
setAuthSchemeRegistry(Lookup<AuthSchemeProvider> lookup)
|
|
void |
setCookieSpecRegistry(Lookup<CookieSpecProvider> lookup)
|
|
void |
setCookieStore(org.apache.http.client.CookieStore cookieStore)
|
|
void |
setCredentialsProvider(org.apache.http.client.CredentialsProvider credentialsProvider)
|
|
void |
setRequestConfig(RequestConfig config)
|
|
void |
setUserToken(java.lang.Object obj)
|
Methods inherited from class org.apache.http.protocol.HttpCoreContext |
---|
getAttribute, getAttribute, getConnection, getConnection, getRequest, getResponse, getTargetHost, isRequestSent, removeAttribute, setAttribute, setTargetHost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HTTP_ROUTE
RouteInfo
object that represents the actual connection route.
public static final java.lang.String REDIRECT_LOCATIONS
List
object that represents a collection of all
redirect locations received in the process of request execution.
public static final java.lang.String COOKIESPEC_REGISTRY
Lookup
object that represents
the actual CookieSpecProvider
registry.
public static final java.lang.String COOKIE_SPEC
CookieSpec
object that represents the actual cookie specification.
public static final java.lang.String COOKIE_ORIGIN
CookieOrigin
object that represents the actual details of the origin server.
public static final java.lang.String COOKIE_STORE
CookieStore
object that represents the actual cookie store.
public static final java.lang.String CREDS_PROVIDER
CredentialsProvider
object that represents the actual credentials provider.
public static final java.lang.String AUTH_CACHE
AuthCache
object
that represents the auth scheme cache.
public static final java.lang.String TARGET_AUTH_STATE
AuthState
object that represents the actual target authentication state.
public static final java.lang.String PROXY_AUTH_STATE
AuthState
object that represents the actual proxy authentication state.
public static final java.lang.String USER_TOKEN
Object
object that represents
the actual user identity such as user Principal
.
public static final java.lang.String AUTHSCHEME_REGISTRY
Lookup
object that represents
the actual AuthSchemeProvider
registry.
public static final java.lang.String REQUEST_CONFIG
RequestConfig
object that
represents the actual request configuration.
Constructor Detail |
---|
public HttpClientContext(org.apache.http.protocol.HttpContext context)
public HttpClientContext()
Method Detail |
---|
public static HttpClientContext adapt(org.apache.http.protocol.HttpContext context)
public static HttpClientContext create()
public org.apache.http.conn.routing.RouteInfo getHttpRoute()
public java.util.List<java.net.URI> getRedirectLocations()
public org.apache.http.client.CookieStore getCookieStore()
public void setCookieStore(org.apache.http.client.CookieStore cookieStore)
public org.apache.http.cookie.CookieSpec getCookieSpec()
public org.apache.http.cookie.CookieOrigin getCookieOrigin()
public Lookup<CookieSpecProvider> getCookieSpecRegistry()
public void setCookieSpecRegistry(Lookup<CookieSpecProvider> lookup)
public Lookup<AuthSchemeProvider> getAuthSchemeRegistry()
public void setAuthSchemeRegistry(Lookup<AuthSchemeProvider> lookup)
public org.apache.http.client.CredentialsProvider getCredentialsProvider()
public void setCredentialsProvider(org.apache.http.client.CredentialsProvider credentialsProvider)
public AuthCache getAuthCache()
public void setAuthCache(AuthCache authCache)
public AuthStateHC4 getTargetAuthState()
public AuthStateHC4 getProxyAuthState()
public <T> T getUserToken(java.lang.Class<T> clazz)
public java.lang.Object getUserToken()
public void setUserToken(java.lang.Object obj)
public RequestConfig getRequestConfig()
public void setRequestConfig(RequestConfig config)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |