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)
ContextMapOp
get
in interface ContextMapOp
T
- object from the mapkey
- Keypublic <T> void set(String key, T obj)
ContextMapOp
set
in interface ContextMapOp
key
- Key for the mapobj
- Object to be placedpublic void setOptions(List<Option> options)
AbstractLocator
setOptions
in interface AbstractLocator
public abstract ResponseCtx get(RequestCtx request)
Copyright © 2023 JBoss by Red Hat. All rights reserved.