org.jpos.bsh
Class BSHRequestListener
java.lang.Object
org.jpos.util.Log
org.jpos.bsh.BSHRequestListener
- All Implemented Interfaces:
- Configurable, ISORequestListener, LogSource
public class BSHRequestListener
- extends Log
- implements ISORequestListener, Configurable
BSHRequestListener - BeanShell based request listener
- Version:
- $Revision$ $Date$
- Author:
- Alejandro P. Revilla
| Methods inherited from class org.jpos.util.Log |
createDebug, createDebug, createError, createError, createFatal, createFatal, createInfo, createInfo, createLogEvent, createLogEvent, createTrace, createTrace, createWarn, createWarn, debug, debug, error, error, fatal, fatal, getLog, getLogger, getRealm, info, info, setLogger, setLogger, setRealm, trace, trace, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MTI_MACRO
protected static final String MTI_MACRO
- See Also:
- Constant Field Values
whitelist
protected HashSet whitelist
bshSource
protected String[] bshSource
BSHRequestListener
public BSHRequestListener()
setConfiguration
public void setConfiguration(Configuration cfg)
throws ConfigurationException
- Specified by:
setConfiguration in interface Configurable
- Parameters:
cfg -
- whitelist - supported message types (example: "1100,1220")
- source - BSH script(s) to run (can be more than one)
- Throws:
ConfigurationException
process
public boolean process(ISOSource source,
ISOMsg m)
- Specified by:
process in interface ISORequestListener
- Parameters:
source - source where you optionally can replym - the unmatched request
- Returns:
- true if request was handled by this listener
Copyright © 1998-2012 jPOS.org. All Rights Reserved.