Package org.jpos.iso
Interface ISOChannel
-
- All Superinterfaces:
ISOSource
- All Known Subinterfaces:
ClientChannel
,FilteredChannel
,ServerChannel
- All Known Implementing Classes:
AmexChannel
,ASCIIChannel
,BASE24Channel
,BASE24TCPChannel
,BaseChannel
,BCDChannel
,ChannelPool
,CSChannel
,FilteredBase
,FSDChannel
,GICCChannel
,GZIPChannel
,HEXChannel
,LogChannel
,LoopbackChannel
,NACChannel
,NCCChannel
,PADChannel
,PostChannel
,RawChannel
,RBPChannel
,TelnetXMLChannel
,VAPChannel
,X25Channel
,XMLChannel
public interface ISOChannel extends ISOSource
allows the transmision and reception of ISO 8583 Messages
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONNECT
static int
RX
static int
SIZEOF_CNT
static int
TX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
clone()
Expose channel clonning interfacevoid
connect()
Connects ISOChannelvoid
disconnect()
disconnects ISOChanneljava.lang.String
getName()
ISOPackager
getPackager()
boolean
isConnected()
ISOMsg
receive()
Receives an ISOMsgvoid
reconnect()
Reconnect channelvoid
send(byte[] b)
sends a byte[] over the TCP/IP sessionvoid
send(ISOMsg m)
sends an ISOMsg over the TCP/IP sessionvoid
setName(java.lang.String name)
associates this ISOChannel with a name on NameRegistrarvoid
setPackager(ISOPackager p)
Associate a packager with this channelvoid
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 interfaceISOSource
- 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 interfaceISOSource
- Parameters:
m
- the Message to be sent- Throws:
java.io.IOException
ISOException
-
send
void send(byte[] b) throws java.io.IOException, ISOException
sends a byte[] over the TCP/IP session- Parameters:
b
- the byte array 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
-
-