|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.common.mllp.MLLPDestination
public class MLLPDestination
This class handles transmission of a given HL7 message to a designated recipient. It supports use of either secured or non-secured sockets. It will return the response returned by the recipient.
| Constructor Summary | |
|---|---|
MLLPDestination(java.lang.String tcpHost,
int tcpPort)
Deprecated. Use MLLPDestination(URI) instead |
|
MLLPDestination(TCPPort destination)
Create a new MLLPDestination instance. |
|
MLLPDestination(java.net.URI uri)
Create a new MLLPDestination instance. |
|
| Method Summary | |
|---|---|
int |
getMaxRetry()
Get default maximum times to retry a connection. |
int |
getRetryWait()
Get default wait time between retry attempts. |
java.net.URI |
getURI()
Get MLLP server and port in URI format. |
static boolean |
getUseATNA()
Get the current class setting for the use of ATNA or MLLP legacy. |
java.lang.String |
sendMessage(java.lang.String msg)
Send specified message to destination host and port and return response received. |
void |
setMaxRetry(int retryCount)
Modify default maximum times to retry a connection. |
void |
setRetryWait(int retryWait)
Modify default wait time between retry attempts. |
static void |
setUseATNA(boolean atna)
Select if the MLLPDestination class should use the ATNA Agent communications, or the legacy MLLP implementation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MLLPDestination(TCPPort destination)
destination - Identifies the host and port that will be the destination for a
given MLLP HL7 message.
public MLLPDestination(java.lang.String tcpHost,
int tcpPort)
MLLPDestination(URI) instead
tcpHost - - destination addresstcpPort - - destination portpublic MLLPDestination(java.net.URI uri)
uri - | Method Detail |
|---|
public int getMaxRetry()
public void setMaxRetry(int retryCount)
retryCount - public int getRetryWait()
public void setRetryWait(int retryWait)
retryWait - public java.net.URI getURI()
public java.lang.String sendMessage(java.lang.String msg)
throws MLLPException
msg - Message to send.
MLLPExceptionpublic static boolean getUseATNA()
public static void setUseATNA(boolean atna)
atna - true = use ATNA, false = use MLLP legacy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||