public abstract class AbstractMessageInterceptor extends AbstractInterceptor<MessagingContainer> implements MessageInterceptor
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparator
DEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY
Constructor and Description |
---|
AbstractMessageInterceptor() |
AbstractMessageInterceptor(int initPriority,
int shutdownPriority) |
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.
|
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, init, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, init, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, shutdown, skip
public AbstractMessageInterceptor(int initPriority, int shutdownPriority)
public AbstractMessageInterceptor()
public InterceptorResult before(Message message, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageInterceptor
before
in interface MessageInterceptor
message
- The message to process.executionContext
- The current execution context.executionResult
- The execution result.Xdi2MessagingException
public InterceptorResult after(Message message, ExecutionContext executionContext, ExecutionResult executionResult) throws Xdi2MessagingException
MessageInterceptor
after
in interface MessageInterceptor
message
- The message to process.executionContext
- The current execution context.executionResult
- The execution result.Xdi2MessagingException
Copyright © 2017. All rights reserved.