jPOS 1.6.1 API Documentation

org.jpos.iso
Interface ISOChannel

All Superinterfaces:
ISOSource
All Known Subinterfaces:
ClientChannel, FilteredChannel, ServerChannel
All Known Implementing Classes:
AmexChannel, ASCIIChannel, BASE24Channel, BASE24TCPChannel, BaseChannel, ChannelPool, CSChannel, FilteredBase, GZIPChannel, HEXChannel, LogChannel, LoopbackChannel, NACChannel, NCCChannel, PADChannel, PostChannel, RawChannel, VAPChannel, X25Channel, XMLChannel

public interface ISOChannel
extends ISOSource

allows the transmision and reception of ISO 8583 Messages

Version:
$Revision: 2610 $ $Date: 2008-03-04 11:29:35 -0800 (Tue, 04 Mar 2008) $
Author:
Alejandro P. Revilla, Alwyn Schoeman

Field Summary
static int CONNECT
           
static int RX
           
static int SIZEOF_CNT
           
static int TX
           
 
Method Summary
 java.lang.Object clone()
          Expose channel clonning interface
 void connect()
          Connects ISOChannel
 void disconnect()
          disconnects ISOChannel
 java.lang.String getName()
           
 ISOPackager getPackager()
           
 boolean isConnected()
           
 ISOMsg receive()
          Receives an ISOMsg
 void reconnect()
          Reconnect channel
 void send(ISOMsg m)
          sends an ISOMsg over the TCP/IP session
 void setName(java.lang.String name)
          associates this ISOChannel with a name on NameRegistrar
 void setPackager(ISOPackager p)
          Associate a packager with this channel
 void setUsable(boolean b)
           
 

Field Detail

CONNECT

static final int CONNECT
See Also:
Constant Field Values

TX

static final int TX
See Also:
Constant Field Values

RX

static final int RX
See Also:
Constant Field Values

SIZEOF_CNT

static final int SIZEOF_CNT
See Also:
Constant Field Values
Method Detail

setPackager

void setPackager(ISOPackager p)
Associate a packager with this channel

Parameters:
p - an ISOPackager

connect

void connect()
             throws java.io.IOException
Connects ISOChannel

Throws:
java.io.IOException

disconnect

void disconnect()
                throws java.io.IOException
disconnects ISOChannel

Throws:
java.io.IOException

reconnect

void reconnect()
               throws java.io.IOException
Reconnect channel

Throws:
java.io.IOException

isConnected

boolean isConnected()
Specified by:
isConnected in interface ISOSource
Returns:
true if Channel is connected and usable

receive

ISOMsg receive()
               throws java.io.IOException,
                      ISOException
Receives an ISOMsg

Returns:
the Message received
Throws:
java.io.IOException
ISOException

send

void send(ISOMsg m)
          throws java.io.IOException,
                 ISOException
sends an ISOMsg over the TCP/IP session

Specified by:
send in interface ISOSource
Parameters:
m - the Message to be sent
Throws:
java.io.IOException
ISOException

setUsable

void setUsable(boolean b)
Parameters:
b - - usable state

setName

void setName(java.lang.String name)
associates this ISOChannel with a name on NameRegistrar

Parameters:
name - name to register
See Also:
NameRegistrar

getName

java.lang.String getName()
Returns:
this ISOChannel's name ("" if no name was set)

getPackager

ISOPackager getPackager()
Returns:
current packager

clone

java.lang.Object clone()
Expose channel clonning interface


jPOS.org