Package org.jpos.iso.filter
Class MacroFilter
- java.lang.Object
-
- org.jpos.iso.filter.MacroFilter
-
- All Implemented Interfaces:
Configurable
,ISOFilter
public class MacroFilter extends java.lang.Object implements ISOFilter, Configurable
MacroFilter useful to set sequencers, date, unset iso fields, etc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jpos.iso.ISOFilter
ISOFilter.VetoException
-
-
Constructor Summary
Constructors Constructor Description MacroFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISOMsg
filter(ISOChannel channel, ISOMsg m, LogEvent evt)
void
setConfiguration(Configuration cfg)
-
-
-
Constructor Detail
-
MacroFilter
public MacroFilter()
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
cfg
-- sequencer - a sequencer used to store counters
- unset - space delimited list of fields to be unset
- valid - space delimited list of valid fields
- comma delimited list of fields to be unset when applying filter
- xzy - property named "xyz"
- Throws:
ConfigurationException
-
filter
public ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt) throws ISOFilter.VetoException
- Specified by:
filter
in interfaceISOFilter
- Parameters:
channel
- current ISOChannel instancem
- ISOMsg to filterevt
- LogEvent- Returns:
- an ISOMsg (possibly parameter m)
- Throws:
ISOFilter.VetoException
-
-