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 java.lang.Object implements UserTokenHandler
Noop implementation ofUserTokenHandlerthat always returnsnull.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description static NoopUserTokenHandlerINSTANCE
-
Constructor Summary
Constructors Constructor Description NoopUserTokenHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetUserToken(org.apache.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 benullif it is not.
-
-
-
Field Detail
-
INSTANCE
public static final NoopUserTokenHandler INSTANCE
-
-
Method Detail
-
getUserToken
public java.lang.Object getUserToken(org.apache.http.protocol.HttpContext context)
Description copied from interface:UserTokenHandlerThe token object returned by this method is expected to uniquely identify the current user if the context is user specific or to benullif it is not.- Specified by:
getUserTokenin interfaceUserTokenHandler- Parameters:
context- the execution context- Returns:
- user token that uniquely identifies the user or
nullif the context is not user specific.
-
-