
public class MessagePolicyInterceptor extends AbstractInterceptor<MessagingContainer> implements MessageInterceptor, Prototype<MessagePolicyInterceptor>
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparatorPrototype.PrototypingContextDEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY| Constructor and Description |
|---|
MessagePolicyInterceptor() |
MessagePolicyInterceptor(Graph messagePolicyGraph) |
| Modifier and Type | Method and Description |
|---|---|
InterceptorResult |
after(Message message,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run after a message is executed.
|
InterceptorResult |
before(Message message,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run before a message is executed.
|
Graph |
getMessagePolicyGraph() |
Graph |
getMessagePolicyGraph(ExecutionContext executionContext) |
MessagePolicyInterceptor |
instanceFor(Prototype.PrototypingContext prototypingContext) |
void |
setMessagePolicyGraph(Graph messagePolicyGraph) |
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, init, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, init, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skippublic MessagePolicyInterceptor(Graph messagePolicyGraph)
public MessagePolicyInterceptor()
public MessagePolicyInterceptor instanceFor(Prototype.PrototypingContext prototypingContext)
instanceFor in interface Prototype<MessagePolicyInterceptor>public InterceptorResult before(Message message, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageInterceptorbefore in interface MessageInterceptormessage - The message to process.executionContext - The current execution context.executionResult - The execution result.Xdi2MessagingExceptionpublic InterceptorResult after(Message message, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageInterceptorafter in interface MessageInterceptormessage - The message to process.executionContext - The current execution context.executionResult - The execution result.Xdi2MessagingExceptionpublic Graph getMessagePolicyGraph(ExecutionContext executionContext)
public Graph getMessagePolicyGraph()
public void setMessagePolicyGraph(Graph messagePolicyGraph)
Copyright © 2017. All rights reserved.