|
|||||||||
| 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.TransportTcpIpClient
public class TransportTcpIpClient
This class is deprecated and should not be used for new applications. This class implements a TCP/IP client for HL7 using the LLP protocol. You can use ClientSocketListener to track events on this object.
ClientSocketListener| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
Default port |
protected boolean |
m_IsConnected
|
protected ClientSocketListener |
m_Listener
|
protected Log |
m_Log
|
protected int |
m_Port
|
| Constructor Summary | |
|---|---|
TransportTcpIpClient(int Port,
java.lang.String Host,
Wrapper AWrapper)
Constructor |
|
| Method Summary | |
|---|---|
void |
addClientSocketListener(ClientSocketListener AListener)
Use this method to add a ClientSocketListener to keep track on events happening on this socket. |
void |
addLog(Log ALog)
Use this method to assign the Log object for this socket to log errors to. |
void |
close()
Closes the current connection |
void |
onClose(long TransportId)
called when a connection closes |
void |
onConnect(long TransportId)
called when a connection has been established |
void |
onMessage(long TransportId,
java.lang.String Message)
called when a message arrives |
void |
onTransportError(long TransportId,
int ErrorId,
java.lang.String ErrorMessage)
called when an error occurs |
void |
sendMessage(java.lang.String MessageData)
Send an HL7 message to the server - the message needs to presented as a string. |
| Methods inherited from class com.interfaceware.chameleon.Hl7ClientSocket |
|---|
closeConnection, connect, finalize, getAddress, getIp, stopNetworkingThread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
protected boolean m_IsConnected
protected int m_Port
protected Log m_Log
protected ClientSocketListener m_Listener
| Constructor Detail |
|---|
public TransportTcpIpClient(int Port,
java.lang.String Host,
Wrapper AWrapper)
Wrapper| Method Detail |
|---|
public void sendMessage(java.lang.String MessageData)
sendMessage in interface TransportsendMessage in class Hl7ClientSocketpublic void close()
public void onMessage(long TransportId,
java.lang.String Message)
onMessage in class Hl7ClientSocketpublic void onConnect(long TransportId)
onConnect in class Hl7ClientSocket
public void onTransportError(long TransportId,
int ErrorId,
java.lang.String ErrorMessage)
onTransportError in class Hl7ClientSocketpublic void onClose(long TransportId)
onClose in class Hl7ClientSocketpublic void addClientSocketListener(ClientSocketListener AListener)
ClientSocketListenerpublic void addLog(Log ALog)
Log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||