Package org.apache.http.impl.client
Class NoopUserTokenHandler
- java.lang.Object
-
- org.apache.http.impl.client.NoopUserTokenHandler
-
- All Implemented Interfaces:
UserTokenHandler
@Contract(threading=IMMUTABLE) public class NoopUserTokenHandler extends Object implements UserTokenHandler
Noop implementation ofUserTokenHandler
that always returnsnull
.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description static NoopUserTokenHandler
INSTANCE
-
Constructor Summary
Constructors Constructor Description NoopUserTokenHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getUserToken(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 benull
if it is not.
-
-
-
Field Detail
-
INSTANCE
public static final NoopUserTokenHandler INSTANCE
-
-
Method Detail
-
getUserToken
public Object getUserToken(HttpContext context)
Description copied from interface:UserTokenHandler
The token object returned by this method is expected to uniquely identify the current user if the context is user specific or to benull
if it is not.- Specified by:
getUserToken
in interfaceUserTokenHandler
- Parameters:
context
- the execution context- Returns:
- user token that uniquely identifies the user or
null
if the context is not user specific.
-
-