xsul.message_router
Class ContextBasedMessageProcessor

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

Constructor Summary
ContextBasedMessageProcessor(MessageProcessor proc)
           
 
Method Summary
 MessageProcessor getProcessor()
           
 boolean process(MessageContext context)
          Return true to indicate that processingis finished (no more links in chains will be called).
abstract  boolean shouldProcess(MessageContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextBasedMessageProcessor

public ContextBasedMessageProcessor(MessageProcessor proc)
Method Detail

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)