org.jpos.iso.filter
Class MacroFilter

java.lang.Object
  extended by org.jpos.iso.filter.MacroFilter
All Implemented Interfaces:
Configurable, ISOFilter

public class MacroFilter
extends Object
implements ISOFilter, Configurable

MacroFilter useful to set sequencers, date, unset iso fields, etc.

Version:
$Revision$ $Date$
Author:
Alejandro P. Revilla

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jpos.iso.ISOFilter
ISOFilter.VetoException
 
Constructor Summary
MacroFilter()
           
 
Method Summary
 ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt)
           
 void setConfiguration(Configuration cfg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroFilter

public MacroFilter()
Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Specified by:
setConfiguration in interface Configurable
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 interface ISOFilter
Parameters:
channel - current ISOChannel instance
m - ISOMsg to filter
evt - LogEvent
Returns:
an ISOMsg (possibly parameter m)
Throws:
ISOFilter.VetoException


Copyright © 1998-2012 jPOS.org. All Rights Reserved.