@Contract(threading=STATELESS) public class NoopUserTokenHandler extends Object implements UserTokenHandler
UserTokenHandler that always returns null.| 限定符和类型 | 字段和说明 |
|---|---|
static NoopUserTokenHandler |
INSTANCE |
| 构造器和说明 |
|---|
NoopUserTokenHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getUserToken(HttpRoute route,
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, waitgetUserTokenpublic static final NoopUserTokenHandler INSTANCE
public Object getUserToken(HttpRoute route, HttpContext context)
UserTokenHandlernull if it is not.getUserToken 在接口中 UserTokenHandlerroute - HTTP routecontext - the execution contextnull if the context is not user specific.Copyright © 2023. All rights reserved.