org.jpos.iso.filter
Class ChannelInfoFilter

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

public class ChannelInfoFilter
extends Object
implements ISOFilter, Configurable

ChannelInfoFilter sets information about the channel in the outgoing/incoming ISOMsg


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jpos.iso.ISOFilter
ISOFilter.VetoException
 
Constructor Summary
ChannelInfoFilter()
           
 
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

ChannelInfoFilter

public ChannelInfoFilter()
Method Detail

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Specified by:
setConfiguration in interface Configurable
Parameters:
cfg -
  • channel-name: put the channel name in the given field
  • socket-info: put socket information in the given field (if the channel is an instance of BaseChannel)
Throws:
ConfigurationException

filter

public ISOMsg filter(ISOChannel channel,
                     ISOMsg m,
                     LogEvent evt)
Specified by:
filter in interface ISOFilter
Parameters:
channel - current ISOChannel instance
m - ISOMsg to filter
evt - LogEvent
Returns:
an ISOMsg (possibly parameter m)


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