public abstract class FilteredBase extends java.util.Observable implements FilteredChannel, java.lang.Cloneable
FilteredChannel
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
incomingFilters |
protected java.util.Vector |
outgoingFilters |
CONNECT, RX, SIZEOF_CNT, TX
Constructor and Description |
---|
FilteredBase() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(ISOFilter filter) |
void |
addIncomingFilter(ISOFilter filter) |
void |
addOutgoingFilter(ISOFilter filter) |
protected ISOMsg |
applyIncomingFilters(ISOMsg m,
LogEvent evt) |
protected ISOMsg |
applyOutgoingFilters(ISOMsg m,
LogEvent evt) |
java.lang.Object |
clone()
Expose channel clonning interface
|
java.util.Collection |
getIncomingFilters() |
java.util.Collection |
getOutgoingFilters() |
void |
removeFilter(ISOFilter filter) |
void |
removeIncomingFilter(ISOFilter filter) |
void |
removeOutgoingFilter(ISOFilter filter) |
void |
setIncomingFilters(java.util.Collection filters) |
void |
setOutgoingFilters(java.util.Collection filters) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, disconnect, getName, getPackager, isConnected, receive, reconnect, send, send, setName, setPackager, setUsable
protected java.util.Vector incomingFilters
protected java.util.Vector outgoingFilters
public void addIncomingFilter(ISOFilter filter)
addIncomingFilter
in interface FilteredChannel
filter
- incoming filter to addpublic void addOutgoingFilter(ISOFilter filter)
addOutgoingFilter
in interface FilteredChannel
filter
- outgoing filter to addpublic void addFilter(ISOFilter filter)
addFilter
in interface FilteredChannel
filter
- filter to add (both directions, incoming/outgoing)public void removeFilter(ISOFilter filter)
removeFilter
in interface FilteredChannel
filter
- filter to remove (both directions)public void removeIncomingFilter(ISOFilter filter)
removeIncomingFilter
in interface FilteredChannel
filter
- incoming filter to removepublic void removeOutgoingFilter(ISOFilter filter)
removeOutgoingFilter
in interface FilteredChannel
filter
- outgoing filter to removeprotected ISOMsg applyOutgoingFilters(ISOMsg m, LogEvent evt) throws ISOFilter.VetoException
ISOFilter.VetoException
protected ISOMsg applyIncomingFilters(ISOMsg m, LogEvent evt) throws ISOFilter.VetoException
ISOFilter.VetoException
public java.util.Collection getIncomingFilters()
getIncomingFilters
in interface FilteredChannel
public java.util.Collection getOutgoingFilters()
getOutgoingFilters
in interface FilteredChannel
public void setIncomingFilters(java.util.Collection filters)
setIncomingFilters
in interface FilteredChannel
filters
- incoming filter setpublic void setOutgoingFilters(java.util.Collection filters)
setOutgoingFilters
in interface FilteredChannel
filters
- outgoing filter setpublic java.lang.Object clone()
ISOChannel
clone
in interface ISOChannel
clone
in class java.lang.Object