| 
 | ||||||||||
| 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
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 String | AUTH_CACHEAttribute name of a AuthCacheobject
 that represents the auth scheme cache. | 
| static String | AUTHSCHEME_REGISTRYAttribute name of a Lookupobject that represents
 the actualAuthSchemeProviderregistry. | 
| static String | COOKIE_ORIGINAttribute name of a CookieOriginobject that represents the actual details of the origin server. | 
| static String | COOKIE_SPECAttribute name of a CookieSpecobject that represents the actual cookie specification. | 
| static String | COOKIE_STOREAttribute name of a CookieStoreobject that represents the actual cookie store. | 
| static String | COOKIESPEC_REGISTRYAttribute name of a Lookupobject that represents
 the actualCookieSpecProviderregistry. | 
| static String | CREDS_PROVIDERAttribute name of a CredentialsProviderobject that represents the actual credentials provider. | 
| static String | HTTP_ROUTEAttribute name of a RouteInfoobject that represents the actual connection route. | 
| static String | PROXY_AUTH_STATEAttribute name of a AuthStateobject that represents the actual proxy authentication state. | 
| static String | REDIRECT_LOCATIONSAttribute name of a Listobject that represents a collection of all
 redirect locations received in the process of request execution. | 
| static String | REQUEST_CONFIGAttribute name of a RequestConfigobject that
 represents the actual request configuration. | 
| static String | TARGET_AUTH_STATEAttribute name of a AuthStateobject that represents the actual target authentication state. | 
| static String | USER_TOKENAttribute name of a Objectobject that represents
 the actual user identity such as userPrincipal. | 
| 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) | |
| 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 String HTTP_ROUTE
RouteInfo
 object that represents the actual connection route.
public static final String REDIRECT_LOCATIONS
List object that represents a collection of all
 redirect locations received in the process of request execution.
public static final String COOKIESPEC_REGISTRY
Lookup object that represents
 the actual CookieSpecProvider registry.
public static final String COOKIE_SPEC
CookieSpec
 object that represents the actual cookie specification.
public static final String COOKIE_ORIGIN
CookieOrigin
 object that represents the actual details of the origin server.
public static final String COOKIE_STORE
CookieStore
 object that represents the actual cookie store.
public static final String CREDS_PROVIDER
CredentialsProvider
 object that represents the actual credentials provider.
public static final String AUTH_CACHE
AuthCache object
 that represents the auth scheme cache.
public static final String TARGET_AUTH_STATE
AuthState
 object that represents the actual target authentication state.
public static final String PROXY_AUTH_STATE
AuthState
 object that represents the actual proxy authentication state.
public static final String USER_TOKEN
Object object that represents
 the actual user identity such as user Principal.
public static final String AUTHSCHEME_REGISTRY
Lookup object that represents
 the actual AuthSchemeProvider registry.
public static final 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 RouteInfo getHttpRoute()
public List<URI> getRedirectLocations()
public CookieStore getCookieStore()
public void setCookieStore(CookieStore cookieStore)
public CookieSpec getCookieSpec()
public CookieOrigin getCookieOrigin()
public org.apache.http.config.Lookup<CookieSpecProvider> getCookieSpecRegistry()
public void setCookieSpecRegistry(org.apache.http.config.Lookup<CookieSpecProvider> lookup)
public org.apache.http.config.Lookup<AuthSchemeProvider> getAuthSchemeRegistry()
public void setAuthSchemeRegistry(org.apache.http.config.Lookup<AuthSchemeProvider> lookup)
public CredentialsProvider getCredentialsProvider()
public void setCredentialsProvider(CredentialsProvider credentialsProvider)
public AuthCache getAuthCache()
public void setAuthCache(AuthCache authCache)
public AuthState getTargetAuthState()
public AuthState getProxyAuthState()
public <T> T getUserToken(Class<T> clazz)
public Object getUserToken()
public void setUserToken(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 | |||||||||