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.
|
IConnectorInterceptor |
getConnectorInterceptor() |
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 |
setConnectorInterceptor(IConnectorInterceptor connectorInterceptor)
Sets the
IConnectorInterceptor to be used instead of the real connection. |
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.ComponentNotFoundExceptionvoid setConnectorInterceptor(IConnectorInterceptor connectorInterceptor) throws io.apiman.gateway.engine.beans.exceptions.InterceptorAlreadyRegisteredException
IConnectorInterceptor to be used instead of the real connection.io.apiman.gateway.engine.beans.exceptions.InterceptorAlreadyRegisteredExceptionIConnectorInterceptor getConnectorInterceptor()
IConnectorInterceptor set to the context or null otherwiseCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.