InboundMessageType - type of inbound messageOutboundMessageType - type of outbound messagepublic class WebFlowMessageHandlerAdaptor<InboundMessageType,OutboundMessageType> extends AbstractProfileAction<InboundMessageType,OutboundMessageType>
AbstractProfileAction subclass that adapts an OpenSAML MessageHandler for execution
in a Spring WebFlow environment.
The handler to run may be injected directly, or supplied via a lookup function.
The WebFlowMessageHandlerAdaptor.Direction enum is used to indicate the target message context for the invocation
of the handler:
WebFlowMessageHandlerAdaptor.Direction.INBOUND indicates to execute the handler on the
InOutOperationContext.getInboundMessageContext()WebFlowMessageHandlerAdaptor.Direction.OUTBOUND indicates to execute the handler on the
InOutOperationContext.getOutboundMessageContext()EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, EventIds.INVALID_MSG_CTX, any, as set| Modifier and Type | Class and Description |
|---|---|
static class |
WebFlowMessageHandlerAdaptor.Direction
Used to indicate the target message context for invocation of the adapted message handler.
|
| Modifier and Type | Field and Description |
|---|---|
private WebFlowMessageHandlerAdaptor.Direction |
direction
The direction of execution for this action instance.
|
private String |
errorEvent
An event to signal in the event of a handler exception.
|
private org.opensaml.messaging.handler.MessageHandler |
handler
The message handler being adapted.
|
private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.messaging.handler.MessageHandler> |
handlerLookupStrategy
Lookup strategy for handler to run if not set directly.
|
private org.slf4j.Logger |
log
Logger.
|
| Modifier | Constructor and Description |
|---|---|
|
WebFlowMessageHandlerAdaptor(Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.messaging.handler.MessageHandler> lookupStrategy,
WebFlowMessageHandlerAdaptor.Direction executionDirection)
Constructor.
|
|
WebFlowMessageHandlerAdaptor(org.opensaml.messaging.handler.MessageHandler messageHandler,
WebFlowMessageHandlerAdaptor.Direction executionDirection)
Constructor.
|
private |
WebFlowMessageHandlerAdaptor(WebFlowMessageHandlerAdaptor.Direction executionDirection)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected void |
doPostExecute(org.opensaml.profile.context.ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext) |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext) |
void |
setErrorEvent(String event)
Set the event to signal in the event of a handler exception.
|
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private org.slf4j.Logger log
@Nullable private Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.messaging.handler.MessageHandler> handlerLookupStrategy
@Nullable private org.opensaml.messaging.handler.MessageHandler handler
private final WebFlowMessageHandlerAdaptor.Direction direction
private WebFlowMessageHandlerAdaptor(@Nonnull@ParameterName(name="executionDirection") WebFlowMessageHandlerAdaptor.Direction executionDirection)
executionDirection - the direction of executionpublic WebFlowMessageHandlerAdaptor(@Nonnull@ParameterName(name="messageHandler") org.opensaml.messaging.handler.MessageHandler messageHandler, @Nonnull@ParameterName(name="executionDirection") WebFlowMessageHandlerAdaptor.Direction executionDirection)
messageHandler - the adapted message handlerexecutionDirection - the direction of executionpublic WebFlowMessageHandlerAdaptor(@Nonnull@ParameterName(name="lookupStrategy") Function<org.opensaml.profile.context.ProfileRequestContext,org.opensaml.messaging.handler.MessageHandler> lookupStrategy, @Nonnull@ParameterName(name="executionDirection") WebFlowMessageHandlerAdaptor.Direction executionDirection)
lookupStrategy - lookup function for message handler to runexecutionDirection - the direction of executionpublic void setErrorEvent(@Nullable String event)
event - event to signalprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileAction<InboundMessageType,OutboundMessageType>public void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileAction<InboundMessageType,OutboundMessageType>protected void doPostExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext<InboundMessageType,OutboundMessageType> profileRequestContext)
doPostExecute in class org.opensaml.profile.action.AbstractProfileAction<InboundMessageType,OutboundMessageType>Copyright © 1999–2017 Shibboleth Consortium. All rights reserved.