public interface ContextMap
| Modifier and Type | Method and Description |
|---|---|
<T extends ViewCapable> |
createViewCapable(String prefix)
ViewCapable instances are custom contexts and are created by the context
propagation framework by
using a ContextViewFactory registered against the corresponding context's
name prefix.
|
<T> T |
get(String name) |
AccessControlledMap |
getAccessControlledMap()
This method is used when one needs to propagate the ContextMap to another Thread.
|
Location |
getLocation() |
EnumSet<PropagationMode> |
getPropagationModes(String name)
Get the propagation modes of a the context with the specified name.
|
boolean |
isEmpty() |
Iterator<String> |
names() |
<T> T |
put(String name,
Boolean context,
EnumSet<PropagationMode> propagationModes)
Stores the specified context under the specified name into the in-scope ContextMap.
|
<T> T |
put(String name,
Character context,
EnumSet<PropagationMode> propagationModes)
Stores the specified context under the specified name into the in-scope ContextMap.
|
<T> T |
put(String name,
String context,
EnumSet<PropagationMode> propagationModes)
Stores the specified context under the specified name into the in-scope ContextMap.
|
<T,U extends Number> |
put(String name,
U context,
EnumSet<PropagationMode> propagationModes)
Stores the specified context under the specified name into the in-scope ContextMap.
|
<T> T |
remove(String name)
Removes the specified context under the specified name from the in-scope ContextMap.
|
EnumSet<PropagationMode> getPropagationModes(String name) throws InsufficientCredentialException
name - context nameInsufficientCredentialExceptionboolean isEmpty()
<T extends ViewCapable> T createViewCapable(String prefix) throws InsufficientCredentialException
prefix - It is the name associated to the ViewCapable instance in the ContextMapInsufficientCredentialExceptionLocation getLocation()
<T> T get(String name) throws InsufficientCredentialException
name - The name of the context sought.InsufficientCredentialException - If the user has insufficient
privileges to access that context.<T> T put(String name, String context, EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException
name - The name to associate to the specified contextcontext - a String context.propagationModes - A set of propagation modes that determines over
which protocol this context will be propagated.InsufficientCredentialException - If the user has insufficient
privileges to access that context.<T,U extends Number> T put(String name, U context, EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException
name - The name to associate to the specified contextcontext - a Number context.propagationModes - A set of propagation modes that determines over
which protocol this context will be propagated.InsufficientCredentialException - If the user has insufficient
privileges to access that context.<T> T put(String name, Boolean context, EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException
name - The name to associate to the specified contextcontext - an boolean String context.propagationModes - A set of propagation modes that determines over
which protocol this context will be propagated.InsufficientCredentialException - If the user has insufficient
privileges to access that context.<T> T put(String name, Character context, EnumSet<PropagationMode> propagationModes) throws InsufficientCredentialException
name - The name to associate to the specified contextcontext - an char String context.propagationModes - A set of propagation modes that determines over
which protocol this context will be propagated.InsufficientCredentialException - If the user has insufficient
privileges to access that context.<T> T remove(String name) throws InsufficientCredentialException
name - The name to which the context was associatedInsufficientCredentialException - If the user has insufficient
privileges to access that context.AccessControlledMap getAccessControlledMap()
Copyright © 2019. All rights reserved.