Top Description Fields Constructors Methods
org.apache.http.client.protocol

public Class ResponseAuthCache

extends Object
implements HttpResponseInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpResponseInterceptor
Annotations
@Contract
threading:IMMUTABLE
@Deprecated
Imports
java.io.IOException, org.apache.commons.logging.Log, .LogFactory, org.apache.http.HttpException, .HttpHost, .HttpResponse, .HttpResponseInterceptor, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.auth.AuthScheme, .AuthState, org.apache.http.client.AuthCache, org.apache.http.client.params.AuthPolicy, org.apache.http.conn.scheme.Scheme, .SchemeRegistry, org.apache.http.impl.client.BasicAuthCache, org.apache.http.protocol.ExecutionContext, .HttpContext, org.apache.http.util.Args

Deprecated

(4.2) use org.apache.http.client.AuthenticationStrategy

Response interceptor that adds successfully completed AuthSchemes to the local AuthCache instance. Cached AuthSchemes can be re-used when executing requests against known hosts, thus avoiding additional authentication round-trips.
Since
4.1

Field Summary

Modifier and TypeField and Description
private final Log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
cache(final AuthCache authCache, final HttpHost host, final AuthScheme authScheme)

private boolean
isCachable(final AuthState authState)

public void
process(final HttpResponse
the response to postprocess
response
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpResponseInterceptor.process.

Processes a response.
private void
uncache(final AuthCache authCache, final HttpHost host, final AuthScheme authScheme)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private final Log log

Constructor Detail

ResponseAuthCacheback to summary
public ResponseAuthCache()

Method Detail

cacheback to summary
private void cache(final AuthCache authCache, final HttpHost host, final AuthScheme authScheme)
isCachableback to summary
private boolean isCachable(final AuthState authState)
processback to summary
public void process(final HttpResponse response, final HttpContext context) throws HttpException, IOException

Implements org.apache.http.HttpResponseInterceptor.process.

Doc from org.apache.http.HttpResponseInterceptor.process.

Processes a response. On the server side, this step is performed before the response is sent to the client. On the client side, this step is performed on incoming messages before the message body is evaluated.

Parameters
response:HttpResponse

the response to postprocess

context:HttpContext

the context for the request

Annotations
@Override
Exceptions
HttpException:
in case of an HTTP protocol violation
IOException:
in case of an I/O error
uncacheback to summary
private void uncache(final AuthCache authCache, final HttpHost host, final AuthScheme authScheme)