com.infoscape.proteus.router
Class XMLSwitch

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

public class XMLSwitch
extends SwitchedRouter

An XMLSwitch has multiple sinks, and routes XML messages based on the value of a tag. A non-XML message passed to an XMLSwitch will go to the default destination if there is one, or none.


Constructor Summary
XMLSwitch(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

XMLSwitch

public XMLSwitch(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