Top Description Fields Constructors Methods
org.apache.hc.client5.http.protocol

public Class RequestAuthCache

extends Object
implements HttpRequestInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.http.HttpRequestInterceptor
Annotations
@Deprecated
@Contract
threading:STATELESS
Imports
java.io.IOException, org.apache.hc.client5.http.RouteInfo, org.apache.hc.client5.http.auth.AuthCache, .AuthExchange, .AuthScheme, .CredentialsProvider, org.apache.hc.client5.http.impl.RequestSupport, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.EntityDetails, .HttpException, .HttpHost, .HttpRequest, .HttpRequestInterceptor, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.util.Args, org.slf4j.Logger, .LoggerFactory

Deprecated

Do not use.

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 static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
process(final HttpRequest
the request to process
request
,
final EntityDetails
the request entity details or null if not available
entity
,
final HttpContext
the context for the request
context
)

Implements org.apache.hc.core5.http.HttpRequestInterceptor.process.

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

Field Detail

LOGback to summary
private static final Logger LOG

Constructor Detail

RequestAuthCacheback to summary
public RequestAuthCache()

Method Detail

processback to summary
public void process(final HttpRequest request, final EntityDetails entity, final HttpContext context) throws HttpException, IOException

Implements org.apache.hc.core5.http.HttpRequestInterceptor.process.

Doc from org.apache.hc.core5.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 process

entity:EntityDetails

the request entity details or null if not available

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