org.jpos.iso
Class Connector
java.lang.Object
org.jpos.iso.Connector
- All Implemented Interfaces:
- Configurable, ISORequestListener, LogSource
public class Connector
- extends java.lang.Object
- implements ISORequestListener, LogSource, Configurable
Connector implements ISORequestListener
and forward all incoming messages to a given
destination MUX, or Channel handling back responses
- Version:
- $Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
- Author:
- Alejandro P. Revilla
- See Also:
ISORequestListener
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Connector
public Connector()
setLogger
public void setLogger(Logger logger,
java.lang.String realm)
- Specified by:
setLogger in interface LogSource
getRealm
public java.lang.String getRealm()
- Specified by:
getRealm in interface LogSource
getLogger
public Logger getLogger()
- Specified by:
getLogger in interface LogSource
setConfiguration
public void setConfiguration(Configuration cfg)
throws ConfigurationException
- Destination can be a Channel or a MUX. If Destination is a Channel
then timeout applies (used on ISORequest to get a Response).
- destination-mux
- destination-channel
- timeout
- poolsize
- Specified by:
setConfiguration in interface Configurable
- Parameters:
cfg - Configuration
- 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