Class BasicMessageHandlerChain
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.impl.BasicMessageHandlerChain
- All Implemented Interfaces:
Component
,DestructableComponent
,InitializableComponent
,MessageHandler
,MessageHandlerChain
A basic implementation of
MessageHandlerChain
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<MessageHandler>
The list of members of the handler chain. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doInvoke
(MessageContext msgContext) Performs the handler logic.Get the ordered list of message handlers which comprise the handler chain.void
setHandlers
(List<MessageHandler> handlers) Set the list of message handler chain members.Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, doPreInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
Methods inherited from interface org.opensaml.messaging.handler.MessageHandler
invoke
-
Field Details
-
members
The list of members of the handler chain.
-
-
Constructor Details
-
BasicMessageHandlerChain
public BasicMessageHandlerChain()
-
-
Method Details
-
getHandlers
Get the ordered list of message handlers which comprise the handler chain.The returned list is immutable. Changes to the list should be accomplished through
setHandlers(List)
.- Specified by:
getHandlers
in interfaceMessageHandlerChain
- Returns:
- the list of members of the handler chain
-
setHandlers
Set the list of message handler chain members.The supplied list is copied before being stored. Later modifications to the originally supplied list will not be reflected in the handler chain membership.
- Parameters:
handlers
- the list of message handler members
-
doInvoke
Performs the handler logic.- Specified by:
doInvoke
in classAbstractMessageHandler
- Parameters:
msgContext
- the message context on which to invoke the handler- Throws:
MessageHandlerException
- if there is an error invoking the handler on the message context
-