jPOS 1.6.1 API Documentation

org.jpos.iso.channel
Class BASE24TCPChannel

java.lang.Object
  extended by java.util.Observable
      extended by org.jpos.iso.BaseChannel
          extended by org.jpos.iso.channel.BASE24TCPChannel
All Implemented Interfaces:
java.lang.Cloneable, Configurable, ReConfigurable, BaseChannelMBean, ClientChannel, FactoryChannel, FilteredChannel, ISOChannel, ISOSource, ServerChannel, LogSource

public class BASE24TCPChannel
extends BaseChannel

Implements an ISOChannel able to exchange messages with ACI's BASE24 over a TCP link, modified from BASE24ISOChannel by Victor A. Salaman (salaman@teknos.com) .
An instance of this class exchanges messages by means of an intermediate 'port server' as described in the Overview page.

Version:
$Id: BASE24TCPChannel.java 2594 2008-01-22 16:41:31Z apr $
Author:
apr@cs.com.uy, salaman@teknos.com
See Also:
ISOMsg, ISOException, ISOChannel

Field Summary
 
Fields inherited from interface org.jpos.iso.ISOChannel
CONNECT, RX, SIZEOF_CNT, TX
 
Constructor Summary
BASE24TCPChannel()
          Public constructor (used by Class.forName("...").newInstance())
BASE24TCPChannel(ISOPackager p)
          Construct server ISOChannel
BASE24TCPChannel(ISOPackager p, java.net.ServerSocket serverSocket)
          constructs a server ISOChannel associated with a Server Socket
BASE24TCPChannel(java.lang.String host, int port, ISOPackager p)
          Construct client ISOChannel
 
Method Summary
 
Methods inherited from class org.jpos.iso.BaseChannel
accept, addFilter, addFilter, addIncomingFilter, addOutgoingFilter, clone, connect, disconnect, getBytes, getChannel, getConfiguration, getCounters, getHeader, getHost, getIncomingFilters, getLogger, getMaxPacketLength, getName, getOriginalRealm, getOutgoingFilters, getPackager, getPort, getRealm, getServerSocket, getSocket, getSocketFactory, getTimeout, isConnected, isOverrideHeader, receive, reconnect, removeFilter, removeFilter, removeIncomingFilter, removeOutgoingFilter, resetCounters, send, sendKeepAlive, setConfiguration, setHeader, setHeader, setHost, setHost, setIncomingFilters, setLocalAddress, setLogger, setMaxPacketLength, setName, setOutgoingFilters, setOverrideHeader, setPackager, setPort, setServerSocket, setSocketFactory, setTimeout, setUsable
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BASE24TCPChannel

public BASE24TCPChannel()
Public constructor (used by Class.forName("...").newInstance())


BASE24TCPChannel

public BASE24TCPChannel(java.lang.String host,
                        int port,
                        ISOPackager p)
Construct client ISOChannel

Parameters:
host - server TCP Address
port - server port number
p - an ISOPackager
See Also:
ISOPackager

BASE24TCPChannel

public BASE24TCPChannel(ISOPackager p)
                 throws java.io.IOException
Construct server ISOChannel

Parameters:
p - an ISOPackager
Throws:
java.io.IOException
See Also:
ISOPackager

BASE24TCPChannel

public BASE24TCPChannel(ISOPackager p,
                        java.net.ServerSocket serverSocket)
                 throws java.io.IOException
constructs a server ISOChannel associated with a Server Socket

Parameters:
p - an ISOPackager
serverSocket - where to accept a connection
Throws:
java.io.IOException
See Also:
ISOPackager

jPOS.org