Package org.jpos.iso.filter
Class XSLTFilter
- java.lang.Object
-
- org.jpos.iso.filter.XSLTFilter
-
- All Implemented Interfaces:
Configurable
,ISOFilter
public class XSLTFilter extends java.lang.Object implements ISOFilter, Configurable
Implements ISOFilter by means of XSL-Transformations
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jpos.iso.ISOFilter
ISOFilter.VetoException
-
-
Constructor Summary
Constructors Constructor Description XSLTFilter()
Default noargs constructorXSLTFilter(java.lang.String xsltfile, boolean reread)
-
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)
configure filter.
-
-
-
Constructor Detail
-
XSLTFilter
public XSLTFilter() throws ISOException
Default noargs constructor- Throws:
ISOException
-
XSLTFilter
public XSLTFilter(java.lang.String xsltfile, boolean reread) throws ISOException
- Parameters:
xsltfile
- XSL Transformation filereread
- true if you want XSLT file re-read from disk- Throws:
ISOException
-
-
Method Detail
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
configure filter.- xsltfile - source XSL-T file
- reread - something != "no" will re-read source file
- Specified by:
setConfiguration
in interfaceConfigurable
- Parameters:
cfg
- new ConfigurationFile- 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
-
-