org.jpos.bsh
Class BSHFilter

java.lang.Object
  extended by org.jpos.bsh.BSHFilter
All Implemented Interfaces:
Configurable, ISOFilter, RawIncomingFilter

public class BSHFilter
extends Object
implements RawIncomingFilter, Configurable

BSHFilter - BeanShell based filter

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jpos.iso.ISOFilter
ISOFilter.VetoException
 
Constructor Summary
BSHFilter()
           
 
Method Summary
 ISOMsg filter(ISOChannel channel, ISOMsg m, byte[] header, byte[] image, LogEvent evt)
           
 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

BSHFilter

public BSHFilter()
Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Specified by:
setConfiguration in interface Configurable
Parameters:
cfg -
  • source - BSH script(s) to run (can be more than one)
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

filter

public ISOMsg filter(ISOChannel channel,
                     ISOMsg m,
                     byte[] header,
                     byte[] image,
                     LogEvent evt)
              throws ISOFilter.VetoException
Specified by:
filter in interface RawIncomingFilter
Parameters:
channel - current ISOChannel instance
m - ISOMsg to filter
header - optional header
image - raw image
evt - LogEvent
Returns:
an ISOMsg (possibly parameter m)
Throws:
ISOFilter.VetoException


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