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
public class BasicMessageHandlerChain extends AbstractMessageHandler implements MessageHandlerChain
A basic implementation ofMessageHandlerChain.
-
-
Field Summary
Fields Modifier and Type Field Description private List<MessageHandler>membersThe list of members of the handler chain.
-
Constructor Summary
Constructors Constructor Description BasicMessageHandlerChain()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoInvoke(MessageContext msgContext)List<MessageHandler>getHandlers()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, 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 Detail
-
members
@NonnullAfterInit @NonnullElements private List<MessageHandler> members
The list of members of the handler chain.
-
-
Method Detail
-
getHandlers
@NonnullAfterInit @NonnullElements public List<MessageHandler> getHandlers()
The returned list is immutable. Changes to the list should be accomplished through
setHandlers(List).- Specified by:
getHandlersin interfaceMessageHandlerChain
-
setHandlers
public void setHandlers(@Nullable @NonnullElements List<MessageHandler> handlers)
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
public void doInvoke(@Nonnull MessageContext msgContext) throws MessageHandlerException- Specified by:
doInvokein classAbstractMessageHandler- Throws:
MessageHandlerException
-
-