public class BCDChannel 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 |
---|
BCDChannel()
Public constructor
|
BCDChannel(ISOPackager p,
byte[] TPDU)
Construct server ISOChannel
|
BCDChannel(ISOPackager p,
byte[] TPDU,
java.net.ServerSocket serverSocket)
constructs server ISOChannel associated with a Server Socket
|
BCDChannel(java.lang.String host,
int port,
ISOPackager p,
byte[] TPDU)
Construct client ISOChannel
|
Modifier and Type | Method and Description |
---|---|
protected int |
getMessageLength() |
protected void |
sendMessageHeader(ISOMsg m,
int len) |
protected void |
sendMessageLength(int len) |
void |
setHeader(java.lang.String header)
New QSP compatible signature (see QSP's ConfigChannel)
|
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, getMessageTrailer, getMessageTrailler, getName, getOriginalRealm, getOutgoingFilters, getPackager, getPort, getRealm, getServerSocket, getSocket, getSocketFactory, getSoLingerSeconds, getTimeout, isConnected, isExpectKeepAlive, isOverrideHeader, isRejected, isSoLingerOn, newSocket, newSocket, pack, postConnectHook, readHeader, receive, reconnect, removeFilter, removeFilter, removeIncomingFilter, removeOutgoingFilter, resetCounters, send, send, sendKeepAlive, sendMessage, sendMessageTrailer, sendMessageTrailler, sendMessageTrailler, setConfiguration, 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 BCDChannel()
public BCDChannel(java.lang.String host, int port, ISOPackager p, byte[] TPDU)
host
- server TCP Addressport
- server port numberp
- an ISOPackagerTPDU
- an optional raw header (i.e. TPDU)ISOPackager
public BCDChannel(ISOPackager p, byte[] TPDU) throws java.io.IOException
p
- an ISOPackagerTPDU
- an optional raw header (i.e. TPDU)java.io.IOException
ISOPackager
public BCDChannel(ISOPackager p, byte[] TPDU, java.net.ServerSocket serverSocket) throws java.io.IOException
p
- an ISOPackagerTPDU
- an optional raw header (i.e. TPDU)serverSocket
- where to accept a connectionjava.io.IOException
ISOPackager
protected void sendMessageLength(int len) throws java.io.IOException
sendMessageLength
in class BaseChannel
java.io.IOException
protected int getMessageLength() throws java.io.IOException, ISOException
getMessageLength
in class BaseChannel
java.io.IOException
ISOException
protected void sendMessageHeader(ISOMsg m, int len) throws java.io.IOException
sendMessageHeader
in class BaseChannel
java.io.IOException
public void setHeader(java.lang.String header)
setHeader
in class BaseChannel
header
- String as seen by QSP