com.infoscape.proteus.filter
Class FilteredSource

java.lang.Object
  |
  +--com.infoscape.proteus.filter.FilteredSource
All Implemented Interfaces:
MessageHandler, MessageSource, Transactional
Direct Known Subclasses:
ExpandedSource

public class FilteredSource
extends java.lang.Object
implements MessageSource

A FilteredSource takes a filter and a source and applies the filter to the messages from the source whenever its own getMessage method is called. The source of a FilteredSource may be another FilteredSource, so that filters may be chained together.


Constructor Summary
FilteredSource(org.jdom.Element elt)
           
 
Method Summary
 void commit()
           
 void disconnect()
           
 Connection getConnection()
           
 java.lang.Object getMessage()
           
 void reconnect()
           
 void rollback()
           
 void setSyncPoint(boolean on)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredSource

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

getMessage

public java.lang.Object getMessage()
                            throws java.lang.Exception
Specified by:
getMessage in interface MessageSource
Throws:
java.lang.Exception

disconnect

public void disconnect()
                throws java.lang.Exception
Specified by:
disconnect in interface MessageHandler
Throws:
java.lang.Exception

reconnect

public void reconnect()
               throws java.lang.Exception
Specified by:
reconnect in interface MessageHandler
Throws:
java.lang.Exception

getConnection

public Connection getConnection()
Specified by:
getConnection in interface MessageHandler

setSyncPoint

public void setSyncPoint(boolean on)
                  throws java.lang.Exception
Specified by:
setSyncPoint in interface Transactional
Parameters:
on -
Throws:
java.lang.Exception

commit

public void commit()
            throws java.lang.Exception
Specified by:
commit in interface Transactional
Throws:
java.lang.Exception

rollback

public void rollback()
              throws java.lang.Exception
Specified by:
rollback in interface Transactional
Throws:
java.lang.Exception