|
||||||||||
| 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.VAPChannel
public class VAPChannel
ISOChannel implementation - VISA's VAP framing
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 | |
|---|---|
VAPChannel()
Public constructor (used by Class.forName("...").newInstance()) |
|
VAPChannel(ISOPackager p)
Construct server ISOChannel |
|
VAPChannel(ISOPackager p,
ServerSocket serverSocket)
constructs a server ISOChannel associated with a Server Socket |
|
VAPChannel(String host,
int port,
ISOPackager p)
Construct client ISOChannel |
|
| Method Summary | |
|---|---|
String |
getDstId()
|
protected ISOHeader |
getDynamicHeader(byte[] image)
The default header for VAPChannel is BASE1Header |
protected int |
getHeaderLength()
|
protected int |
getMessageLength()
|
String |
getSrcId()
|
protected boolean |
isRejected(byte[] b)
|
protected byte[] |
readHeader(int hLen)
This method reads in a Base 1 Header. |
void |
send(ISOMsg m)
sends an ISOMsg over the TCP/IP session. |
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 |
setDstId(String dstid)
|
void |
setSrcId(String srcid)
|
protected boolean |
shouldIgnore(byte[] b)
|
| 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 VAPChannel()
public VAPChannel(String host,
int port,
ISOPackager p)
host - server TCP Addressport - server port numberp - an ISOPackager (should be ISO87BPackager)ISO87BPackager
public VAPChannel(ISOPackager p)
throws IOException
p - an ISOPackager (should be ISO87BPackager)
IOExceptionISO87BPackager
public VAPChannel(ISOPackager p,
ServerSocket serverSocket)
throws IOException
p - an ISOPackagerserverSocket - where to accept a connection
IOExceptionISOPackager| Method Detail |
|---|
public void setSrcId(String srcid)
public String getSrcId()
public void setDstId(String dstid)
public String getDstId()
protected ISOHeader getDynamicHeader(byte[] image)
getDynamicHeader in class BaseChannelimage - message image
protected byte[] readHeader(int hLen)
throws IOException
readHeader in class BaseChannelhLen -
IOException
protected void sendMessageLength(int len)
throws IOException
sendMessageLength in class BaseChannelIOException
protected void sendMessageHeader(ISOMsg m,
int len)
throws IOException
sendMessageHeader in class BaseChannelm - the messagelen - already packed message len (to avoid re-pack)
IOException
protected int getMessageLength()
throws IOException,
ISOException
getMessageLength in class BaseChannelIOException
ISOExceptionprotected int getHeaderLength()
getHeaderLength in class BaseChannelprotected boolean isRejected(byte[] b)
isRejected in class BaseChannelprotected boolean shouldIgnore(byte[] b)
shouldIgnore in class BaseChannel
public void send(ISOMsg m)
throws IOException,
ISOException
send in interface ISOChannelsend in interface ISOSourcesend in class BaseChannelm - the Message to be sent
IOException
ISOExceptionISOChannel.send(org.jpos.iso.ISOMsg)
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 | |||||||||