|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.app.Connection
public class Connection
A TCP/IP connection to a remote HL7 server.
Constructor Summary | |
---|---|
Connection(Parser parser,
LowerLayerProtocol llp,
java.net.Socket bidirectional)
Creates a new instance of Connection, with inbound and outbound communication on a single port. |
|
Connection(Parser parser,
LowerLayerProtocol llp,
java.net.Socket inbound,
java.net.Socket outbound)
Creates a new instance of Connection, with inbound communication on one port and outbound on another. |
Method Summary | |
---|---|
void |
close()
Stops running Receiver threads and closes open sockets |
protected ca.uhn.hl7v2.app.MessageReceipt |
findRecipient(java.lang.String ackID)
Given the ack ID (MSA-2) of a message, returns the corresponding MessageReceipt if one exists (ie if reserveResponse has been called for this ack ID). |
protected HL7Writer |
getAckWriter()
Returns the HL7Writer through which responses to inbound messages should be sent. |
Initiator |
getInitiator()
Returns the Initiator associated with this connection |
Parser |
getParser()
|
java.net.InetAddress |
getRemoteAddress()
Returns the address of the remote host to which this Connection is connected. |
Responder |
getResponder()
Returns the Responder associated with this connection |
protected HL7Writer |
getSendWriter()
Returns the HL7Writer through which unsolicited outbound messages should be sent. |
int |
hashCode()
|
boolean |
isOpen()
Returns false if the Connection has been closed. |
protected ca.uhn.hl7v2.app.MessageReceipt |
reserveResponse(java.lang.String messageID)
Reserves a future incoming message by ack ID. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Connection(Parser parser, LowerLayerProtocol llp, java.net.Socket bidirectional) throws LLPException, java.io.IOException
LLPException
java.io.IOException
public Connection(Parser parser, LowerLayerProtocol llp, java.net.Socket inbound, java.net.Socket outbound) throws LLPException, java.io.IOException
LLPException
java.io.IOException
Method Detail |
---|
public java.net.InetAddress getRemoteAddress()
public Initiator getInitiator()
public Responder getResponder()
protected HL7Writer getSendWriter()
protected HL7Writer getAckWriter()
public Parser getParser()
public java.lang.String toString()
toString
in class java.lang.Object
protected ca.uhn.hl7v2.app.MessageReceipt reserveResponse(java.lang.String messageID)
protected ca.uhn.hl7v2.app.MessageReceipt findRecipient(java.lang.String ackID)
public void close()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isOpen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |