@Contract(threading=STATELESS)
public interface UserTokenHandler
null
if the context does not contain any resources or details
specific to the current user.
The user token will be used to ensure that user specific resources will not be shared with or reused by other users.
Modifier and Type | Method and Description |
---|---|
Object |
getUserToken(HttpRoute route,
org.apache.hc.core5.http.protocol.HttpContext context)
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. |
default Object |
getUserToken(HttpRoute route,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context)
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. |
Object getUserToken(HttpRoute route, org.apache.hc.core5.http.protocol.HttpContext context)
null
if it is not.route
- HTTP routecontext
- the execution contextnull
if the context is not user specific.default Object getUserToken(HttpRoute route, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)
null
if it is not.route
- HTTP routerequest
- HTTP requestcontext
- the execution contextnull
if the context is not user specific.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.