|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.connector.tcpip.hl7.client.HL7v3AppMessageImpl
public class HL7v3AppMessageImpl
This class implements the HL7 v3.0 application message interface.
Field Summary | |
---|---|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
HL7v3AppMessageImpl()
Constructor for HL7v3AppMessageImpl. |
|
HL7v3AppMessageImpl(HL7v3ClientApplication application)
Constructor for HL7v3AppMessage. |
Method Summary | |
---|---|
HL7v3ClientApplicationImpl |
getApplication()
Returns the application. |
java.lang.String |
getApplicationName()
Used to get the Application name. |
java.lang.String |
getDatasourceJNDIName()
The getDatasourceJNDIName method is used to get the Datasource JNDI name bound to the perticular dataBase. |
byte[] |
getPayload()
The payload holds HL7 data. |
int |
getSequenceNumber()
|
boolean |
isHL7v3Message()
The isHL7v3Message method is check the received hl7 message is V3 message or not. |
boolean |
isHL7v3QueuedAcknowledgementType()
Used to find the configured Acknowledgment is Queued one or nor for HL7 v3 Message processing. |
boolean |
isServerConnectionType()
The isServerConnectionType method is used to find the server connection type is server or client. |
int |
loadSequenceNumber()
Loads the sequence number from the persistence file. |
void |
receive()
Receives the enveloped data over the TCP/IP connection and de-envelopes/validates it (according to LLP settings). |
void |
send()
Envelopes (according to LLP settings) the HL7 data which is stored in payload, The enveloped HL7 data is then sent out over the TCP/IP connection. |
void |
sendEnvelopedMsg(byte[] llpMessage)
Envelopes (according to LLP settings) the HL7 data which is stored in payload, The enveloped HL7 data is then sent out over the MLLPv2. |
void |
sendMessagePayload()
Envelopes (according to LLP settings) the HL7 data which is stored in payload, The enveloped HL7 data is then sent out over the MLLPv2. |
void |
setMessagePayload(byte[] payload)
The payload holds HL7 data. |
void |
setPayload(byte[] payload)
The payload holds HL7 data. |
void |
setSequenceNumber(int sequenceNumber)
|
void |
storeHL7Ack(java.lang.String messageId,
java.lang.String HL7ACK)
Stores the HL7 Ack message in the MLLPV2's persistence storage. |
void |
storeHL7Nak(java.lang.String messageId,
java.lang.String HL7NAK)
Stores the HL7 NAK message in the MLLPV2's persistence storage. |
void |
storeSequenceNumber()
|
void |
storeSequenceNumber(int sequenceNumber)
Stores the sequence number to the persistence file. |
void |
updateMBeanProperty(java.lang.String propertyName,
java.lang.String propertyDisplayValue)
The updateMBeanProperty method is used to update the Mbean properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
Constructor Detail |
---|
public HL7v3AppMessageImpl()
public HL7v3AppMessageImpl(HL7v3ClientApplication application) throws HL7ApplicationException
application
- HL7v3ClientApplication
HL7ApplicationException
Method Detail |
---|
public HL7v3ClientApplicationImpl getApplication()
public byte[] getPayload() throws HL7ApplicationException
HL7v3AppMessage
getPayload
in interface HL7v3AppMessage
byte[]
- The payload in byte array.
HL7ApplicationException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#getPayload()
public void setPayload(byte[] payload) throws HL7ApplicationException
HL7v3AppMessage
setPayload
in interface HL7v3AppMessage
payload
- The payload to set.
HL7ApplicationException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#setPayload(byte[])
public int loadSequenceNumber() throws HL7ApplicationException, java.io.IOException
HL7v3AppMessage
loadSequenceNumber
in interface HL7v3AppMessage
int
- The number stored in file.
HL7ApplicationException
java.io.IOException
HL7v3AppMessage.loadSequenceNumber()
public void storeSequenceNumber() throws HL7ApplicationException, java.io.IOException
HL7ApplicationException
java.io.IOException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#storeSequenceNumber()
public void storeSequenceNumber(int sequenceNumber) throws HL7ApplicationException, java.io.IOException
HL7v3AppMessage
storeSequenceNumber
in interface HL7v3AppMessage
sequenceNumber
- The number to store.
HL7ApplicationException
java.io.IOException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#storeSequenceNumber(int)
public int getSequenceNumber() throws HL7ApplicationException
HL7ApplicationException
com.stc.connector.appconn.tcpip.hl7.HL7v3AppMessage#getSequenceNumber()
public void setSequenceNumber(int sequenceNumber) throws HL7ApplicationException
HL7ApplicationException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#setSequenceNumber(int)
public void receive() throws HL7ApplicationException, java.io.IOException, TCPIPNoResponseException, TCPIPIncompleteDataException
HL7v3AppMessage
Note: If it fails to receive the enveloped data over the TCP/IP connection, java.io.IOException is thrown. There are 3 cases:
If it fails to de-envelope/validate data, com.stc.connector.tcpip.hl7.exception.HL7ApplicationException is thrown.
receive
in interface HL7v3AppMessage
HL7ApplicationException
java.io.IOException
TCPIPNoResponseException
TCPIPIncompleteDataException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#receive()
public void send() throws HL7ApplicationException, java.io.IOException
HL7v3AppMessage
Before this method is called, the outgoing HL7 data should already be stored in payload by the setPayload() method. Note: If it fails to send the enveloped data over the TCP/IP connection, IOException will be thrown. If it fails to envelope data, HL7ApplicationException will be thrown.
send
in interface HL7v3AppMessage
HL7ApplicationException
java.io.IOException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#send()
public void storeHL7Ack(java.lang.String messageId, java.lang.String HL7ACK) throws HL7ApplicationException
HL7v3AppMessage
storeHL7Ack
in interface HL7v3AppMessage
messageId
- The MSH message control Id of the original HL7 request messageHL7ACK
- The complete HL7 ACK message to store
HL7ApplicationException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#storeHL7Ack()
public void storeHL7Nak(java.lang.String messageId, java.lang.String HL7NAK) throws HL7ApplicationException
HL7v3AppMessage
storeHL7Nak
in interface HL7v3AppMessage
messageId
- The MSH message control Id of the original HL7 request messageHL7NAK
- The complete HL7 NAK message to store
HL7ApplicationException
com.stc.connector.appconn.tcpip.hl7.HL7V3AppMessage#storeHL7Nak()
public void sendEnvelopedMsg(byte[] llpMessage) throws TCPIPApplicationException, java.io.IOException
MLLPV2CommonInterface
Before this method is called, the outgoing HL7 data should already be stored in payload by the setPayload() method. Note: If it fails to send the enveloped data over the TCP/IP connection, IOException will be thrown. If it fails to envelope data, HL7ApplicationException will be thrown.
sendEnvelopedMsg
in interface MLLPV2CommonInterface
llpMessage
- --The enveloped HL7 Message
TCPIPApplicationException
java.io.IOException
MLLPV2CommonInterface.sendEnvelopedMsg(byte[] llpMessage)
public boolean isServerConnectionType()
MLLPV2CommonInterface
isServerConnectionType
in interface MLLPV2CommonInterface
boolean
- true or false.MLLPV2CommonInterface.isServerConnectionType()
public void updateMBeanProperty(java.lang.String propertyName, java.lang.String propertyDisplayValue)
MLLPV2CommonInterface
updateMBeanProperty
in interface MLLPV2CommonInterface
propertyName
- --The property name to be updated.propertyDisplayValue
- --The property display value.com.stc.connector.hl7.framework.llp.MLLPV2CommonInterface#updateMBeanProperty()
public java.lang.String getDatasourceJNDIName() throws HL7ApplicationException
MLLPV2CommonInterface
getDatasourceJNDIName
in interface MLLPV2CommonInterface
String
- JNDI name.
HL7ApplicationException
MLLPV2CommonInterface.getDatasourceJNDIName()
public java.lang.String getApplicationName()
MLLPV2CommonInterface
getApplicationName
in interface MLLPV2CommonInterface
String
- Application Name.MLLPV2CommonInterface.getApplicationName()
public void sendMessagePayload() throws HL7ApplicationException, java.io.IOException
MLLPV2CommonInterface
Before this method is called, the outgoing HL7 data should already be stored in payload by the setPayload() method. Note: If it fails to send the enveloped data over the TCP/IP connection, IOException will be thrown. If it fails to envelope data, HL7ApplicationException will be thrown.
sendMessagePayload
in interface MLLPV2CommonInterface
HL7ApplicationException
java.io.IOException
MLLPV2CommonInterface.sendMessagePayload()
public void setMessagePayload(byte[] payload) throws HL7ApplicationException
MLLPV2CommonInterface
setMessagePayload
in interface MLLPV2CommonInterface
payload
- The payload to set.
HL7ApplicationException
com.stc.connector.hl7.framework.llp.MLLPV2CommonInterface#setMessagePayload()
public boolean isHL7v3Message()
MLLPV2CommonInterface
isHL7v3Message
in interface MLLPV2CommonInterface
boolean
- return true or false.MLLPV2CommonInterface.isHL7v3Message()
public boolean isHL7v3QueuedAcknowledgementType() throws HL7ApplicationException
MLLPV2CommonInterface
isHL7v3QueuedAcknowledgementType
in interface MLLPV2CommonInterface
boolean
- return true or false.
HL7ApplicationException
MLLPV2CommonInterface.isHL7v3QueuedAcknowledgementType()
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |