xsul.message_router
Class SimpleChain
java.lang.Object
xsul.message_router.SimpleChain
- All Implemented Interfaces:
- MessageProcessingNode
- public class SimpleChain
- extends java.lang.Object
- implements MessageProcessingNode
are called in chain until one node in chain returns true from process() method
or chain is finished.
- Version:
- $Revision: 1.5 $
- Author:
- Aleksander Slominski
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleChain
public SimpleChain()
process
public boolean process(MessageContext context)
throws MessageProcessingException
- Return true to indicate that processingis finished
(no more links in chains will be called).
- Specified by:
process in interface MessageProcessingNode
- Throws:
MessageProcessingException
addEntry
public void addEntry(MessageProcessingNode en)
throws MessageProcessingException
- Throws:
MessageProcessingException
insertEntryBefore
public void insertEntryBefore(MessageProcessingNode insertPosition,
MessageProcessingNode en)
throws MessageProcessingException
- Throws:
MessageProcessingException
entries
public Iterable entries()
throws MessageProcessingException
- Throws:
MessageProcessingException
removeEntry
public void removeEntry(MessageProcessingNode en)
throws MessageProcessingException
- Throws:
MessageProcessingException
removeAllEntries
public void removeAllEntries()
throws MessageProcessingException
- Throws:
MessageProcessingException
IU Extreme! Lab (http://www.extreme.indiana.edu)