
public class VariablesInterceptor extends AbstractInterceptor<MessagingContainer> implements MessageEnvelopeInterceptor, OperationInterceptor, TargetInterceptor, Prototype<VariablesInterceptor>
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparatorPrototype.PrototypingContextDEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY| Constructor and Description |
|---|
VariablesInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
InterceptorResult |
after(MessageEnvelope messageEnvelope,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run after a message envelope is executed.
|
InterceptorResult |
after(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run after an operation is executed.
|
InterceptorResult |
before(MessageEnvelope messageEnvelope,
ExecutionContext executionContext,
ExecutionResult executionResult)
Run before a message envelope is executed.
|
InterceptorResult |
before(Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Run before an operation is executed.
|
void |
exception(MessageEnvelope messageEnvelope,
ExecutionContext executionContext,
ExecutionResult executionResult,
Exception ex)
Run if an exception occurs while a message envelope is executed.
|
VariablesInterceptor |
instanceFor(Prototype.PrototypingContext prototypingContext) |
XDIAddress |
targetAddress(XDIAddress targetAddress,
Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Replaces or skips the target address before it is executed.
|
XDIStatement |
targetStatement(XDIStatement targetStatement,
Operation operation,
Graph operationResultGraph,
ExecutionContext executionContext)
Replaces or skips the target statement before it is executed.
|
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 VariablesInterceptor instanceFor(Prototype.PrototypingContext prototypingContext)
instanceFor in interface Prototype<VariablesInterceptor>public InterceptorResult before(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageEnvelopeInterceptorbefore in interface MessageEnvelopeInterceptormessageEnvelope - The message envelope to process.executionContext - The current execution context.executionResult - The executionResult.Xdi2MessagingExceptionpublic InterceptorResult after(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageEnvelopeInterceptorafter in interface MessageEnvelopeInterceptormessageEnvelope - The message envelope to process.executionContext - The current execution context.executionResult - The executionResult.Xdi2MessagingExceptionpublic void exception(MessageEnvelope messageEnvelope, ExecutionContext executionContext, ExecutionResult executionResult, Exception ex)
MessageEnvelopeInterceptorexception in interface MessageEnvelopeInterceptorexecutionContext - The current execution context.executionResult - The executionResult.ex - The exception that occurred.public InterceptorResult before(Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptorbefore in interface OperationInterceptoroperation - The operation to process.operationResultGraph - The operation's message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic InterceptorResult after(Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptorafter in interface OperationInterceptoroperation - The operation to process.operationResultGraph - The operation's message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic XDIStatement targetStatement(XDIStatement targetStatement, Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
TargetInterceptortargetStatement in interface TargetInterceptortargetStatement - The target statement.operation - The operation to process.executionContext - The current execution context.Xdi2MessagingExceptionpublic XDIAddress targetAddress(XDIAddress targetAddress, Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException
TargetInterceptortargetAddress in interface TargetInterceptortargetAddress - The target address.operation - The operation to process.executionContext - The current execution context.Xdi2MessagingExceptionCopyright © 2017. All rights reserved.