public abstract class CacheLocator extends Object implements AbstractLocator
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
contextMap |
protected Map<String,Object> |
optionMap |
protected List<Option> |
options |
ATTRIBUTE_DESIGNATOR_INTEGER_TAG, ATTRIBUTE_DESIGNATOR_SUPPORT_TAG, ATTRIBUTE_SELECTOR_SUPPORT_TAG, ATTRIBUTE_SUPPORTED_ID_TAG, IDENTIFIER_TAG, RESOURCE_CHILD_SUPPORTED_TAG, RESOURCE_DESCENDANT_SUPPORTED_TAG| Constructor and Description |
|---|
CacheLocator() |
| Modifier and Type | Method and Description |
|---|---|
abstract ResponseCtx |
get(RequestCtx request) |
<T> T |
get(String key)
Get an element from the map
|
<T> void |
set(String key,
T obj)
Set an object on the map
|
void |
setOptions(List<Option> options)
Set a list of options on the locator
|
public <T> T get(String key)
ContextMapOpget in interface ContextMapOpT - object from the mapkey - Keypublic <T> void set(String key, T obj)
ContextMapOpset in interface ContextMapOpkey - Key for the mapobj - Object to be placedpublic void setOptions(List<Option> options)
AbstractLocatorsetOptions in interface AbstractLocatorpublic abstract ResponseCtx get(RequestCtx request)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.