jPOS 1.6.1 API Documentation

org.jpos.iso
Class Connector

java.lang.Object
  extended by 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

Constructor Summary
Connector()
           
 
Method Summary
 Logger getLogger()
           
 java.lang.String getRealm()
           
 boolean process(ISOSource source, ISOMsg m)
           
 void setConfiguration(Configuration cfg)
          Destination can be a Channel or a MUX.
 void setLogger(Logger logger, java.lang.String realm)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connector

public Connector()
Method Detail

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).

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 reply
m - the unmatched request
Returns:
true if request was handled by this listener

jPOS.org