|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.interfaceware.chameleon.Hl7ClientSocket
com.interfaceware.chameleon.Connection
public class Connection
This class implements a connection for streaming data to and from a client socket.
Transport| Field Summary | |
|---|---|
protected static int |
EOF
|
protected ServerSocketListener |
m_Listener
|
protected Log |
m_Log
|
protected Hl7ClientSocket |
m_Socket
|
protected Wrapper |
m_Wrapper
|
| Constructor Summary | |
|---|---|
Connection()
default constructor |
|
Connection(long TransportId,
Wrapper AWrapper,
Log ALog)
Constructs a Connection with the specified socket and wrapper objects, and the log interface. |
|
| Method Summary | |
|---|---|
void |
addServerSocketListener(ServerSocketListener AListener)
Adds the specified server socket listener to receive server socket events from this connection. |
protected void |
clientConnectEvent()
/** Invokes the onClientConnect event on the ServerSocketListener class |
protected void |
errorEvent(java.lang.Exception Error,
java.lang.String Description)
Converts the Exception to a string and appends a description to the error message. |
void |
onClose(long TransportId)
called when a connection closes |
void |
onMessage(long TransportId,
java.lang.String Message)
Listens on the client socket port for incoming messages. |
void |
onTransportError(long TransportId,
int ErrorId,
java.lang.String ErrorMessage)
called when an error occurs |
protected void |
println(java.lang.String Description)
Logs line to the log object assigned to this class |
void |
sendMessage(java.lang.String MessageData)
Wraps a message and writes the message to the socket output stream. |
| Methods inherited from class com.interfaceware.chameleon.Hl7ClientSocket |
|---|
closeConnection, connect, finalize, getAddress, getIp, onConnect, stopNetworkingThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Hl7ClientSocket m_Socket
protected Wrapper m_Wrapper
protected Log m_Log
protected ServerSocketListener m_Listener
protected static final int EOF
| Constructor Detail |
|---|
public Connection()
public Connection(long TransportId,
Wrapper AWrapper,
Log ALog)
| Method Detail |
|---|
public void onMessage(long TransportId,
java.lang.String Message)
onMessage in class Hl7ClientSocketWrapperpublic void sendMessage(java.lang.String MessageData)
sendMessage in interface TransportsendMessage in class Hl7ClientSocket
public void onTransportError(long TransportId,
int ErrorId,
java.lang.String ErrorMessage)
onTransportError in class Hl7ClientSocket
protected void errorEvent(java.lang.Exception Error,
java.lang.String Description)
protected void println(java.lang.String Description)
public void onClose(long TransportId)
onClose in class Hl7ClientSocketprotected void clientConnectEvent()
public void addServerSocketListener(ServerSocketListener AListener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||