org.jpos.bsh
Class BSHFilter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BSHFilter
public BSHFilter()
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 instancem - ISOMsg to filterevt - 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 instancem - ISOMsg to filterheader - optional headerimage - raw imageevt - LogEvent
- Returns:
- an ISOMsg (possibly parameter m)
- Throws:
ISOFilter.VetoException
Copyright © 1998-2012 jPOS.org. All Rights Reserved.