xsul.message_router
Class ContextBasedMessageProcessor
java.lang.Object
xsul.message_router.ContextBasedMessageProcessor
- All Implemented Interfaces:
- MessageProcessingNode
- Direct Known Subclasses:
- HttpContextMessageProcessor
- public abstract class ContextBasedMessageProcessor
- extends java.lang.Object
- implements MessageProcessingNode
Class that can be used ot process selected messages by message processor.
Selection is encapsulated in abstract method.
- Version:
- $Revision: 1.3 $
- Author:
- Aleksander Slominski
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextBasedMessageProcessor
public ContextBasedMessageProcessor(MessageProcessor proc)
shouldProcess
public abstract boolean shouldProcess(MessageContext context)
getProcessor
public MessageProcessor getProcessor()
process
public boolean process(MessageContext context)
throws MessageRouterException
- Return true to indicate that processingis finished
(no more links in chains will be called).
- Specified by:
process in interface MessageProcessingNode
- Throws:
MessageRouterException
IU Extreme! Lab (http://www.extreme.indiana.edu)