public class SecretTokenInterceptor extends AbstractInterceptor<MessagingContainer> implements MessageInterceptor, Prototype<SecretTokenInterceptor>
Extension.InitPriorityComparator, Extension.ShutdownPriorityComparator
Prototype.PrototypingContext
Modifier and Type | Field and Description |
---|---|
static SecretTokenValidator |
DEFAULT_SECRET_TOKEN_VALIDATOR |
DEFAULT_INIT_PRIORITY, DEFAULT_SHUTDOWN_PRIORITY
Constructor and Description |
---|
SecretTokenInterceptor() |
SecretTokenInterceptor(SecretTokenValidator secretTokenValidator) |
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.
|
SecretTokenValidator |
getSecretTokenValidator() |
void |
init(MessagingContainer messagingContainer) |
SecretTokenInterceptor |
instanceFor(Prototype.PrototypingContext prototypingContext) |
void |
setSecretTokenValidator(SecretTokenValidator secretTokenValidator) |
void |
shutdown(MessagingContainer messagingContainer) |
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearDisabled, clearDisabledForMessage, clearDisabledForMessageEnvelope, clearDisabledForOperation, getInitPriority, getShutdownPriority, setDisabled, setDisabledForMessage, setDisabledForMessageEnvelope, setDisabledForOperation, skip
public static final SecretTokenValidator DEFAULT_SECRET_TOKEN_VALIDATOR
public SecretTokenInterceptor(SecretTokenValidator secretTokenValidator)
public SecretTokenInterceptor()
public SecretTokenInterceptor instanceFor(Prototype.PrototypingContext prototypingContext) throws Xdi2MessagingException
instanceFor
in interface Prototype<SecretTokenInterceptor>
Xdi2MessagingException
public void init(MessagingContainer messagingContainer) throws Exception
init
in interface Extension<MessagingContainer>
init
in class AbstractExtension<MessagingContainer>
Exception
public void shutdown(MessagingContainer messagingContainer) throws Exception
shutdown
in interface Extension<MessagingContainer>
shutdown
in class AbstractExtension<MessagingContainer>
Exception
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
public SecretTokenValidator getSecretTokenValidator()
public void setSecretTokenValidator(SecretTokenValidator secretTokenValidator)
Copyright © 2017. All rights reserved.