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

public Class NoopUserTokenHandler

extends Object
implements UserTokenHandler
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.UserTokenHandler
Annotations
@Contract
threading:STATELESS
Imports
org.apache.hc.client5.http.HttpRoute, .UserTokenHandler, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.protocol.HttpContext

Noop implementation of UserTokenHandler that always returns null.
Since
4.3

Field Summary

Modifier and TypeField and Description
public static final NoopUserTokenHandler

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getUserToken(final HttpRoute
HTTP route
route
,
final HttpContext
the execution context
context
)

Implements org.apache.hc.client5.http.UserTokenHandler.getUserToken.

The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to be null if it is not.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final NoopUserTokenHandler INSTANCE

Constructor Detail

NoopUserTokenHandlerback to summary
public NoopUserTokenHandler()

Method Detail

getUserTokenback to summary
public Object getUserToken(final HttpRoute route, final HttpContext context)

Implements org.apache.hc.client5.http.UserTokenHandler.getUserToken.

Doc from org.apache.hc.client5.http.UserTokenHandler.getUserToken.

The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to be null if it is not.

Parameters
route:HttpRoute

HTTP route

context:HttpContext

the execution context

Returns:Object

user token that uniquely identifies the user or null if the context is not user specific.

Annotations
@Override