|
||||||||||
| 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.LogChannel
public class LogChannel
Extracts <isomsg> blocks from standard jPOS log
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 | |
|---|---|
LogChannel()
Public constructor (used by Class.forName("...").newInstance()) |
|
LogChannel(ISOPackager p)
Construct server ISOChannel |
|
LogChannel(ISOPackager p,
ServerSocket serverSocket)
constructs a server ISOChannel associated with a Server Socket |
|
LogChannel(String host,
int port,
ISOPackager p)
Constructs client ISOChannel |
|
| Method Summary | |
|---|---|
protected void |
connect(Socket socket)
setup I/O Streams from socket |
void |
disconnect()
disconnects the TCP/IP session. |
protected int |
getHeaderLength()
|
protected byte[] |
streamReceive()
|
| 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 LogChannel()
public LogChannel(String host,
int port,
ISOPackager p)
host - server TCP Addressport - server port numberp - an ISOPackagerISOPackager
public LogChannel(ISOPackager p)
throws IOException
p - an ISOPackager
IOExceptionISOPackager
public LogChannel(ISOPackager p,
ServerSocket serverSocket)
throws IOException
p - an ISOPackagerserverSocket - where to accept a connection
IOExceptionISOPackager| Method Detail |
|---|
protected byte[] streamReceive()
throws IOException
streamReceive in class BaseChannelIOExceptionprotected int getHeaderLength()
getHeaderLength in class BaseChannel
protected void connect(Socket socket)
throws IOException
BaseChannel
connect in class BaseChannelsocket - a Socket (client or server)
IOException - on error
public void disconnect()
throws IOException
BaseChannel
disconnect in interface BaseChannelMBeandisconnect in interface ISOChanneldisconnect in class BaseChannelIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||