public class PADChannel extends BaseChannel
ISOMsg
,
ISOException
,
ISOChannel
cnt, header, incomingFilters, logger, originalRealm, outgoingFilters, overrideHeader, packager, realm, serverIn, serverInLock, serverOut, serverOutLock, serverSocket, socketFactory, usable
CONNECT, RX, SIZEOF_CNT, TX
Constructor and Description |
---|
PADChannel()
No-args constructor
|
PADChannel(ISOPackager p)
Construct server ISOChannel
|
PADChannel(ISOPackager p,
java.net.ServerSocket serverSocket)
constructs a server ISOChannel associated with a Server Socket
|
PADChannel(java.lang.String host,
int port,
ISOPackager p)
Constructs client ISOChannel
|
Modifier and Type | Method and Description |
---|---|
ISOMsg |
receive()
Waits and receive an ISOMsg over the TCP/IP session
|
void |
send(ISOMsg m)
sends an ISOMsg over the TCP/IP session
|
void |
setConfiguration(Configuration cfg)
Implements Configurable
Properties: host - destination host (if ClientChannel) port - port number (if ClientChannel) local-iface - local interfase to use (if ClientChannel) local-port - local port to bind (if ClientChannel) (host not present indicates a ServerChannel) |
void |
setHeader(java.lang.String header) |
accept, addFilter, addFilter, addIncomingFilter, addOutgoingFilter, applyIncomingFilters, applyIncomingFilters, applyOutgoingFilters, applyTimeout, clone, closeSocket, connect, connect, createISOMsg, createMsg, disconnect, getBytes, getChannel, getConfiguration, getCounters, getDynamicHeader, getDynamicPackager, getDynamicPackager, getDynamicPackager, getExceptionHandlers, getHeader, getHeaderLength, getHeaderLength, getHeaderLength, getHost, getIncomingFilters, getLogger, getMaxPacketLength, getMessage, getMessageLength, getMessageTrailer, getMessageTrailler, getName, getOriginalRealm, getOutgoingFilters, getPackager, getPort, getRealm, getServerSocket, getSocket, getSocketFactory, getSoLingerSeconds, getTimeout, isConnected, isExpectKeepAlive, isOverrideHeader, isRejected, isSoLingerOn, newSocket, newSocket, pack, postConnectHook, readHeader, reconnect, removeFilter, removeFilter, removeIncomingFilter, removeOutgoingFilter, resetCounters, send, sendKeepAlive, sendMessage, sendMessageHeader, sendMessageLength, sendMessageTrailer, sendMessageTrailler, sendMessageTrailler, setHeader, setHost, setHost, setIncomingFilters, setLocalAddress, setLogger, setMaxPacketLength, setName, setOutgoingFilters, setOverrideHeader, setPackager, setPort, setServerSocket, setSocketFactory, setSoLinger, setTimeout, setUsable, shouldIgnore, streamReceive, unpack
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHandler, addHandler, handle, removeHandler, removeHandler, removeHandlers
public PADChannel()
public PADChannel(java.lang.String host, int port, ISOPackager p)
host
- server TCP Addressport
- server port numberp
- an ISOPackagerISOPackager
public PADChannel(ISOPackager p) throws java.io.IOException
p
- an ISOPackagerjava.io.IOException
ISOPackager
public PADChannel(ISOPackager p, java.net.ServerSocket serverSocket) throws java.io.IOException
p
- an ISOPackagerserverSocket
- where to accept a connectionjava.io.IOException
ISOPackager
public ISOMsg receive() throws java.io.IOException, ISOException
BaseChannel
receive
in interface ISOChannel
receive
in class BaseChannel
java.io.IOException
ISOException
public void send(ISOMsg m) throws java.io.IOException, ISOException
BaseChannel
send
in interface ISOChannel
send
in interface ISOSource
send
in class BaseChannel
m
- the Message to be sentjava.io.IOException
ISOException
public void setConfiguration(Configuration cfg) throws ConfigurationException
BaseChannel
setConfiguration
in interface Configurable
setConfiguration
in class BaseChannel
cfg
- ConfigurationConfigurationException
public void setHeader(java.lang.String header)
setHeader
in class BaseChannel
header
- Hex representation of header