xsul.message_router
Class SimpleChain

java.lang.Object
  extended byxsul.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

Constructor Summary
SimpleChain()
           
 
Method Summary
 void addEntry(MessageProcessingNode en)
           
 Iterable entries()
           
 void insertEntryBefore(MessageProcessingNode insertPosition, MessageProcessingNode en)
           
 boolean process(MessageContext context)
          Return true to indicate that processingis finished (no more links in chains will be called).
 void removeAllEntries()
           
 void removeEntry(MessageProcessingNode en)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleChain

public SimpleChain()
Method Detail

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)