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

public Class RequestAuthCache

extends Object
implements HttpRequestInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpRequestInterceptor
Annotations
@Contract
threading:IMMUTABLE
Imports
java.io.IOException, org.apache.commons.logging.Log, .LogFactory, org.apache.http.HttpException, .HttpHost, .HttpRequest, .HttpRequestInterceptor, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.auth.AuthProtocolState, .AuthScheme, .AuthScope, .AuthState, .Credentials, org.apache.http.client.AuthCache, .CredentialsProvider, org.apache.http.conn.routing.RouteInfo, org.apache.http.protocol.HttpContext, org.apache.http.util.Args

Request interceptor that can preemptively authenticate against known hosts, if there is a cached AuthScheme instance in the local AuthCache associated with the given target or proxy host.
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
doPreemptiveAuth(final HttpHost host, final AuthScheme authScheme, final AuthState authState, final CredentialsProvider credsProvider)

public void
process(final HttpRequest
the request to preprocess
request
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpRequestInterceptor.process.

Processes a request.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private final Log log

Constructor Detail

RequestAuthCacheback to summary
public RequestAuthCache()

Method Detail

doPreemptiveAuthback to summary
private void doPreemptiveAuth(final HttpHost host, final AuthScheme authScheme, final AuthState authState, final CredentialsProvider credsProvider)
processback to summary
public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException

Implements org.apache.http.HttpRequestInterceptor.process.

Doc from org.apache.http.HttpRequestInterceptor.process.

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

Parameters
request:HttpRequest

the request to preprocess

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