
public class WriteListenerInterceptor extends AbstractInterceptor<MessagingTarget> implements MessageEnvelopeInterceptor, OperationInterceptor, Prototype<WriteListenerInterceptor>
| Modifier and Type | Class and Description |
|---|---|
static interface |
WriteListenerInterceptor.WriteListener |
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparatorPrototype.PrototypingContextDEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY| Constructor and Description |
|---|
WriteListenerInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWriteListener(XDIAddress writeListenerXDIAddress,
WriteListenerInterceptor.WriteListener writeListener) |
InterceptorResult |
after(MessageEnvelope messageEnvelope,
MessageResult messageResult,
ExecutionContext executionContext)
Run after a message envelope is executed.
|
InterceptorResult |
after(Operation operation,
MessageResult messageResult,
ExecutionContext executionContext)
Run after an operation is executed.
|
InterceptorResult |
before(MessageEnvelope messageEnvelope,
MessageResult messageResult,
ExecutionContext executionContext)
Run before a message envelope is executed.
|
InterceptorResult |
before(Operation operation,
MessageResult messageResult,
ExecutionContext executionContext)
Run before an operation is executed.
|
void |
exception(MessageEnvelope messageEnvelope,
MessageResult messageResult,
ExecutionContext executionContext,
Exception ex)
Run if an exception occurs while a message envelope is executed.
|
WriteListenerInterceptor |
instanceFor(Prototype.PrototypingContext prototypingContext) |
void |
removeWriteListener(XDIAddress writeListenerXDIAddress,
WriteListenerInterceptor.WriteListener writeListener) |
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 WriteListenerInterceptor instanceFor(Prototype.PrototypingContext prototypingContext)
instanceFor in interface Prototype<WriteListenerInterceptor>public InterceptorResult before(MessageEnvelope messageEnvelope, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException
MessageEnvelopeInterceptorbefore in interface MessageEnvelopeInterceptormessageEnvelope - The message envelope to process.messageResult - The message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic InterceptorResult after(MessageEnvelope messageEnvelope, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException
MessageEnvelopeInterceptorafter in interface MessageEnvelopeInterceptormessageEnvelope - The message envelope to process.messageResult - The message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic void exception(MessageEnvelope messageEnvelope, MessageResult messageResult, ExecutionContext executionContext, Exception ex)
MessageEnvelopeInterceptorexception in interface MessageEnvelopeInterceptorpublic InterceptorResult before(Operation operation, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptorbefore in interface OperationInterceptoroperation - The operation to process.messageResult - The operation's message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic InterceptorResult after(Operation operation, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException
OperationInterceptorafter in interface OperationInterceptoroperation - The operation to process.messageResult - The operation's message result.executionContext - The current execution context.Xdi2MessagingExceptionpublic void addWriteListener(XDIAddress writeListenerXDIAddress, WriteListenerInterceptor.WriteListener writeListener)
public void removeWriteListener(XDIAddress writeListenerXDIAddress, WriteListenerInterceptor.WriteListener writeListener)
Copyright © 2015. All Rights Reserved.