@Contract(threading=STATELESS) public class NoopUserTokenHandler extends Object implements UserTokenHandler
UserTokenHandler
that always returns null
.Modifier and Type | Field and Description |
---|---|
static NoopUserTokenHandler |
INSTANCE
Default instance of
NoopUserTokenHandler . |
Constructor and Description |
---|
NoopUserTokenHandler() |
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUserToken
public static final NoopUserTokenHandler INSTANCE
NoopUserTokenHandler
.public Object getUserToken(HttpRoute route, org.apache.hc.core5.http.protocol.HttpContext context)
UserTokenHandler
null
if it is not.getUserToken
in interface UserTokenHandler
route
- HTTP routecontext
- the execution contextnull
if the context is not user specific.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.