Class BasicMessageHandlerChain
java.lang.Object
net.shibboleth.shared.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 TypeMethodDescriptionvoiddoInvoke(MessageContext msgContext) Performs the handler logic.Get the ordered list of message handlers which comprise the handler chain.voidsetHandlers(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, isPreInvokeCalled, setActivationConditionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods 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:
getHandlersin 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:
doInvokein 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
-