com.infoscape.proteus.router
Class SubstringSwitch

java.lang.Object
  |
  +--com.infoscape.proteus.router.Router
        |
        +--com.infoscape.proteus.router.SwitchedRouter
              |
              +--com.infoscape.proteus.router.SubstringSwitch
All Implemented Interfaces:
MessageHandler, MessageSink, java.lang.Runnable, Transactional

public class SubstringSwitch
extends SwitchedRouter

A SubstringSwitch has multiple sinks, and routes string messages based on the value of a substring of the message.


Constructor Summary
SubstringSwitch(org.jdom.Element elt)
           
 
Method Summary
protected  java.lang.String getMatch(java.lang.Object msg)
           
 
Methods inherited from class com.infoscape.proteus.router.SwitchedRouter
route
 
Methods inherited from class com.infoscape.proteus.router.Router
addSink, commit, disconnect, getConnection, log, log, putMessage, reconnect, rollback, routeMessage, run, setSyncPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstringSwitch

public SubstringSwitch(org.jdom.Element elt)
                throws java.lang.Exception
Parameters:
elt -
Throws:
java.lang.Exception
Method Detail

getMatch

protected java.lang.String getMatch(java.lang.Object msg)
                             throws java.lang.Exception
Specified by:
getMatch in class SwitchedRouter
Parameters:
msg -
Throws:
java.lang.Exception