jPOS 1.6.1 API Documentation

org.jpos.iso.channel
Class CSChannel

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

public class CSChannel
extends BaseChannel

ISOChannel implementation - CS standard Channel
We at CS, have used the so called ISOChannels for a long time. This class talks with our legacy C++ based systems.

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

Field Summary
 
Fields inherited from interface org.jpos.iso.ISOChannel
CONNECT, RX, SIZEOF_CNT, TX
 
Constructor Summary
CSChannel()
          Public constructor (used by Class.forName("...").newInstance())
CSChannel(ISOPackager p)
          Construct server ISOChannel
CSChannel(ISOPackager p, java.net.ServerSocket serverSocket)
          constructs a server ISOChannel associated with a Server Socket
CSChannel(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

CSChannel

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


CSChannel

public CSChannel(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

CSChannel

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

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

CSChannel

public CSChannel(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