|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.jpos.iso.BaseChannel
org.jpos.iso.channel.NACChannel
public class NACChannel
Talks with TCP based NACs Sends [LEN][TPDU][ISOMSG] (len=2 bytes network byte order)
ISOMsg,
ISOException,
ISOChannel| Field Summary |
|---|
| Fields inherited from class org.jpos.iso.BaseChannel |
|---|
cnt, header, incomingFilters, logger, originalRealm, outgoingFilters, overrideHeader, packager, realm, serverIn, serverInLock, serverOut, serverOutLock, serverSocket, socketFactory, usable |
| Fields inherited from interface org.jpos.iso.ISOChannel |
|---|
CONNECT, RX, SIZEOF_CNT, TX |
| Constructor Summary | |
|---|---|
NACChannel()
|
|
NACChannel(ISOPackager p,
byte[] TPDU)
Construct server ISOChannel |
|
NACChannel(ISOPackager p,
byte[] TPDU,
ServerSocket serverSocket)
constructs server ISOChannel associated with a Server Socket |
|
NACChannel(String host,
int port,
ISOPackager p,
byte[] TPDU)
Construct client ISOChannel |
|
| Method Summary | |
|---|---|
protected int |
getMessageLength()
|
protected void |
sendMessageHeader(ISOMsg m,
int len)
|
protected void |
sendMessageLength(int len)
|
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(String header)
New QSP compatible signature (see QSP's ConfigChannel) |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NACChannel()
public NACChannel(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 NACChannel(ISOPackager p,
byte[] TPDU)
throws IOException
p - an ISOPackagerTPDU - an optional raw header (i.e. TPDU)
IOException - on errorISOPackager
public NACChannel(ISOPackager p,
byte[] TPDU,
ServerSocket serverSocket)
throws IOException
p - an ISOPackagerTPDU - an optional raw header (i.e. TPDU)serverSocket - where to accept a connection
IOException - on errorISOPackager| Method Detail |
|---|
protected void sendMessageLength(int len)
throws IOException
sendMessageLength in class BaseChannelIOException
protected int getMessageLength()
throws IOException,
ISOException
getMessageLength in class BaseChannelIOException
ISOException
protected void sendMessageHeader(ISOMsg m,
int len)
throws IOException
sendMessageHeader in class BaseChannelIOExceptionpublic void setHeader(String header)
setHeader in class BaseChannelheader - String as seen by QSP
public void setConfiguration(Configuration cfg)
throws ConfigurationException
BaseChannel
setConfiguration in interface ConfigurablesetConfiguration in class BaseChannelcfg - Configuration
ConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||