Sun Adapter for TCP/IP HL7

com.stc.connector.tcpip.hl7.client
Class HL7v3ClientApplicationImpl

java.lang.Object
  extended by com.stc.connector.tcpip.model.client.TCPIPClientApplicationImpl
      extended by com.stc.connector.tcpip.ext.client.TCPIPEXTClientApplicationImpl
          extended by com.stc.connector.tcpip.hl7.client.HL7v3ClientApplicationImpl
All Implemented Interfaces:
TCPIPEXTClientApplication, HL7v3ClientApplication, TCPIPClientApplication
Direct Known Subclasses:
HL7v3ServerApplicationImpl

public class HL7v3ClientApplicationImpl
extends TCPIPEXTClientApplicationImpl
implements HL7v3ClientApplication, TCPIPEXTClientApplication, TCPIPClientApplication

This class implements the HL7 v3.0 client application interface.

Version:
cvs revision: $Revision: 1.2 $ Last Modified: $Date: 2008/04/24 12:54:13 $
Author:
Nageswara Samudrala

Field Summary
static java.lang.String version
           
 
Fields inherited from class com.stc.connector.tcpip.model.client.TCPIPClientApplicationImpl
defaultTimeout, mMonitorData
 
Constructor Summary
HL7v3ClientApplicationImpl()
           
HL7v3ClientApplicationImpl(TCPIPApplicationConnection appConn, java.lang.String appName, TCPIPMonitorData aMonitorData)
          Constructor for HL7v3ClientApplicationImpl.
 
Method Summary
 HL7v3AppMessage getHL7Message()
          Returns the HL7v3AppMessage
 HL7v3MessageInfoInterface getHL7v3MessageInfo()
          Returns the HL7v3MessageInfoInterface that holds the handles to various sections of the configuration
protected  long getMaxEmptyReadRetry()
           
 java.lang.String getState()
          Returns the State which is set by user.
protected  int getTimeToWaitForAResponse()
           
 void setHL7Message(HL7v3AppMessage appMessage)
          Sets the appMessage.
 void setHL7v3MessageInfo(HL7v3MessageInfo hl7MessageInfo)
          Sets the hl7MessageInfo.
 void updateMBeanProperty(java.lang.String propertyName, java.lang.String propertyDisplayValue)
          Updates certain RA MBean property with the specified value.
 
Methods inherited from class com.stc.connector.tcpip.ext.client.TCPIPEXTClientApplicationImpl
createBeginMarkerMsg, createEndMarkerMsg, createNumberMsg, createNumberMsg, getMessageInfo, readCertainLength, readFixedLengthMsg, readMsgBetweenMarkers, readMsgUntilMarker_old, readMsgUntilMarker, readRepeatingMsg, receiveAbstractMsg, receiveBeginEndMarkedMsg, receiveCustomEnvelopedMsg, receiveEndMarkedMsg, receiveEnvelopedMsg, receiveFixedLengthMsg, receiveLengthPrefixedMsg, receiveMarkedAndFixedMsg, receivePerActiveConnectionMsg, sendAbstractMsg, sendBeginEndMarkedMsg, sendCustomEnvelopedMsg, sendEndMarkedMsg, sendEnvelopedMsg, sendFixedLengthMsg, sendLengthPrefixedMsg, sendMarkedAndFixedMsg, sendPerActiveConnectionMsg, setMessageInfo
 
Methods inherited from class com.stc.connector.tcpip.model.client.TCPIPClientApplicationImpl
checkIfClosed, closeConnection, getApplicationConnection, getApplicationName, getCallingAdapter, getClientGeneralInfo, getLeftOverFromLastRead, getMaxDataSize, getMonitor, getResourceAdapter, getSocket, getSocketInfo, getStateHandler, getTCPIPOutboundConfigInfo, isCalledByInbound, isClosed, isServerCloseNotification, isServerCloseNotification, isServerIdleTimeout, readFully, readFully, receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString, setApplicationConnection, setApplicationName, setCalledByInbound, setCallingAdapter, setClientGeneralInfo, setLeftOverFromLastRead, setMaxDataSize, setSocketInfo, setState, setTCPIPOutboundConfigInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.stc.connector.appconn.tcpip.hl7.HL7v3ClientApplication
closeConnection, getMaxDataSize, getSocket, getTCPIPOutboundConfigInfo, isClosed, receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString, setMaxDataSize, setState
 
Methods inherited from interface com.stc.connector.appconn.tcpip.ext.TCPIPEXTClientApplication
closeConnection, getMaxDataSize, getMessageInfo, getSocket, getTCPIPOutboundConfigInfo, isClosed, receiveBytes, receiveEnvelopedMsg, receiveString, receiveString, sendBytes, sendEnvelopedMsg, sendString, sendString, setMaxDataSize, setState
 
Methods inherited from interface com.stc.connector.appconn.tcpip.model.TCPIPClientApplication
closeConnection, getMaxDataSize, getSocket, getTCPIPOutboundConfigInfo, isClosed, receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString, setMaxDataSize, setState
 

Field Detail

version

public static final java.lang.String version
See Also:
Constant Field Values
Constructor Detail

HL7v3ClientApplicationImpl

public HL7v3ClientApplicationImpl()

HL7v3ClientApplicationImpl

public HL7v3ClientApplicationImpl(TCPIPApplicationConnection appConn,
                                  java.lang.String appName,
                                  TCPIPMonitorData aMonitorData)
Constructor for HL7v3ClientApplicationImpl.

Parameters:
appConn - TCPIPApplicationConnection
appName - The applicatin name.
aMonitorData - The TCPIPMonitorData (actually HL7MonitorData) object
Method Detail

getHL7Message

public HL7v3AppMessage getHL7Message()
                              throws HL7ApplicationException
Returns the HL7v3AppMessage

Specified by:
getHL7Message in interface HL7v3ClientApplication
Returns:
com.stc.connector.appconn.tcpip.hl7.HL7v3AppMessage
Throws:
HL7ApplicationException

getHL7v3MessageInfo

public HL7v3MessageInfoInterface getHL7v3MessageInfo()
                                              throws HL7ApplicationException
Returns the HL7v3MessageInfoInterface that holds the handles to various sections of the configuration

Specified by:
getHL7v3MessageInfo in interface HL7v3ClientApplication
Returns:
Throws:
HL7ApplicationException

setHL7Message

public void setHL7Message(HL7v3AppMessage appMessage)
Sets the appMessage.

Parameters:
appMessage - The appMessage to set

setHL7v3MessageInfo

public void setHL7v3MessageInfo(HL7v3MessageInfo hl7MessageInfo)
Sets the hl7MessageInfo.

Parameters:
hl7MessageInfo - The hl7MessageInfo to set

getState

public java.lang.String getState()
                          throws TCPIPApplicationException
Description copied from interface: TCPIPClientApplication
Returns the State which is set by user. User can use this state to keep track the progress of the business rules. This state has same life cycle as the resource adapter, that is, it is attached with the resource adapter. Once you set the state, its value will be kept during the whole life cycle of the resource adapter.

Specified by:
getState in interface TCPIPEXTClientApplication
Specified by:
getState in interface HL7v3ClientApplication
Specified by:
getState in interface TCPIPClientApplication
Overrides:
getState in class TCPIPClientApplicationImpl
Returns:
The state value.
Throws:
TCPIPApplicationException - on error
See Also:
TCPIPClientApplication.getState()

getTimeToWaitForAResponse

protected int getTimeToWaitForAResponse()
Overrides:
getTimeToWaitForAResponse in class TCPIPClientApplicationImpl
Returns:
See Also:
TCPIPClientApplicationImpl.getTimeToWaitForAResponse()

getMaxEmptyReadRetry

protected long getMaxEmptyReadRetry()
Overrides:
getMaxEmptyReadRetry in class TCPIPClientApplicationImpl
Returns:
See Also:
TCPIPClientApplicationImpl.getMaxEmptyReadRetry()

updateMBeanProperty

public void updateMBeanProperty(java.lang.String propertyName,
                                java.lang.String propertyDisplayValue)
Description copied from class: TCPIPClientApplicationImpl
Updates certain RA MBean property with the specified value.

Overrides:
updateMBeanProperty in class TCPIPClientApplicationImpl
See Also:
TCPIPClientApplicationImpl.updateMBeanProperty(java.lang.String, java.lang.String)

Sun Adapter for TCP/IP HL7