public interface IPolicyContext
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(String name,
T defaultValue)
Fetches an attribute value from the conversation.
|
<T extends IComponent> |
getComponent(Class<T> componentClass)
Gets a component by type.
|
boolean |
removeAttribute(String name)
Removes an attribute from the conversation.
|
void |
setAttribute(String name,
Object value)
Sets a conversation-scoped attribute, allowing policies to pass interesting
information to each other and to themselves.
|
void setAttribute(String name, Object value)
name - value - <T> T getAttribute(String name, T defaultValue)
name - defaultValue - boolean removeAttribute(String name)
name - <T extends IComponent> T getComponent(Class<T> componentClass) throws io.apiman.gateway.engine.beans.exceptions.ComponentNotFoundException
componentClass - io.apiman.gateway.engine.beans.exceptions.ComponentNotFoundExceptionCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.