|
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.model.client.TCPIPClientApplicationImpl
com.stc.connector.tcpip.ext.client.TCPIPEXTClientApplicationImpl
com.stc.connector.tcpip.hl7.client.HL7v3ClientApplicationImpl
com.stc.connector.tcpip.hl7.server.HL7v3ServerApplicationImpl
public class HL7v3ServerApplicationImpl
This class implements the HL7v3 server application interface.
| Field Summary | |
|---|---|
static java.lang.String |
version
|
| Fields inherited from class com.stc.connector.tcpip.model.client.TCPIPClientApplicationImpl |
|---|
defaultTimeout, mMonitorData |
| Constructor Summary | |
|---|---|
HL7v3ServerApplicationImpl()
|
|
HL7v3ServerApplicationImpl(TCPIPServerApplicationConnection serverAppConn,
java.lang.String appName,
TCPIPMonitorData aMonitorData)
|
|
| Method Summary | |
|---|---|
protected void |
checkIfClosed()
Checks whether the application connection was closed. |
void |
closeConnection()
Closes the existing connection physically (no matter it is good or bad). |
boolean |
getDedicatedSessionMode()
Returns the dedicatedSessionMode. |
HL7v3MessageInfoInterface |
getHL7v3MessageInfo()
Returns the HL7v3MessageInfoInterface that holds the handles to various sections of the configuration |
byte[] |
getLeftOverFromLastRead()
|
int |
getMaxDataSize()
Returns the maxDataSize. |
MessageInfoInterface |
getMessageInfo()
Gets the message configuration information. |
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
Method getResourceAdapter. |
TCPIPServerApplicationConnection |
getServerApplicationConnection()
Gets the TCPIP server application connection which created this instance of TCPIPServerApplication. |
TCPIPServerGeneralInfo |
getServerGeneralInfo()
Returns the TCPIPServerGeneralInfo instance. |
TCPIPServerScheduleInfo |
getServerScheduleInfo()
Returns the TCPIPServerScheduleInfo instance. |
TCPIPServerSocketInfo |
getServerSocketInfo()
Returns the TCPIPServerSocketInfo instance. |
java.net.Socket |
getSocket()
Returns the underlying java.net.Socket instance which the e*Way relys on. |
java.lang.String |
getState()
Returns the State which is set by user. |
StateHandler |
getStateHandler()
Returns the stateHandler. |
TCPIPServerConfigInfoInterface |
getTCPIPInboundConfigInfo()
Returns an object that represents the base TCP/IP Inbound configuration information. |
boolean |
isClosed()
Checks whether the connection is closed. |
boolean |
isServerCloseNotification(java.lang.String closeCommand)
Returns true if the data which the server receives represents the close notification. |
void |
setDedicatedSessionMode(boolean dedicatedSessionMode)
Sets the dedicatedSessionMode. |
void |
setLeftOverFromLastRead(byte[] bs)
|
void |
setMaxDataSize(int maxDataSize)
Sets the maxDataSize. |
void |
setServerApplicationConnection(TCPIPServerApplicationConnection serverAppConn)
Sets the TCPIP application connection. |
void |
setServerGeneralInfo(TCPIPServerGeneralInfo serverGeneralInfo)
|
void |
setServerScheduleInfo(TCPIPServerScheduleInfo serverScheduleInfo)
Method setServerScheduleInfo. |
void |
setServerSocketInfo(TCPIPServerSocketInfo serverSocketInfo)
Method setServerSocketInfo. |
void |
setState(java.lang.String stateValue)
Sets State. |
void |
setTCPIPInboundConfigInfo(TCPIPServerConfigInfo inboundConfigInfo)
|
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.hl7.client.HL7v3ClientApplicationImpl |
|---|
getHL7Message, getMaxEmptyReadRetry, getTimeToWaitForAResponse, setHL7Message, setHL7v3MessageInfo |
| Methods inherited from class com.stc.connector.tcpip.model.client.TCPIPClientApplicationImpl |
|---|
getApplicationConnection, getApplicationName, getCallingAdapter, getClientGeneralInfo, getMonitor, getSocketInfo, getTCPIPOutboundConfigInfo, isCalledByInbound, isServerCloseNotification, isServerIdleTimeout, readFully, readFully, receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString, setApplicationConnection, setApplicationName, setCalledByInbound, setCallingAdapter, setClientGeneralInfo, setSocketInfo, 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.HL7v3ServerApplication |
|---|
getHL7Message, receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString |
| Methods inherited from interface com.stc.connector.appconn.tcpip.ext.TCPIPEXTServerApplication |
|---|
receiveBytes, receiveEnvelopedMsg, receiveString, receiveString, sendBytes, sendEnvelopedMsg, sendString, sendString |
| Methods inherited from interface com.stc.connector.appconn.tcpip.model.TCPIPServerApplication |
|---|
receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString |
| Methods inherited from interface com.stc.connector.appconn.tcpip.hl7.HL7v3ClientApplication |
|---|
getTCPIPOutboundConfigInfo, receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString |
| Methods inherited from interface com.stc.connector.appconn.tcpip.ext.TCPIPEXTClientApplication |
|---|
getTCPIPOutboundConfigInfo, receiveBytes, receiveEnvelopedMsg, receiveString, receiveString, sendBytes, sendEnvelopedMsg, sendString, sendString |
| Methods inherited from interface com.stc.connector.appconn.tcpip.model.TCPIPClientApplication |
|---|
getTCPIPOutboundConfigInfo, receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString |
| Field Detail |
|---|
public static final java.lang.String version
| Constructor Detail |
|---|
public HL7v3ServerApplicationImpl()
public HL7v3ServerApplicationImpl(TCPIPServerApplicationConnection serverAppConn,
java.lang.String appName,
TCPIPMonitorData aMonitorData)
| Method Detail |
|---|
public boolean isClosed()
throws TCPIPApplicationException
TCPIPClientApplication
isClosed in interface TCPIPEXTClientApplicationisClosed in interface TCPIPEXTServerApplicationisClosed in interface HL7v3ClientApplicationisClosed in interface HL7v3ServerApplicationisClosed in interface TCPIPClientApplicationisClosed in interface TCPIPServerApplicationisClosed in class TCPIPClientApplicationImplTCPIPApplicationException - on errorTCPIPClientApplication.isClosed()
public void closeConnection()
throws TCPIPApplicationException
TCPIPClientApplication
closeConnection in interface TCPIPEXTClientApplicationcloseConnection in interface TCPIPEXTServerApplicationcloseConnection in interface HL7v3ClientApplicationcloseConnection in interface HL7v3ServerApplicationcloseConnection in interface TCPIPClientApplicationcloseConnection in interface TCPIPServerApplicationcloseConnection in class TCPIPClientApplicationImplTCPIPApplicationException - on errorTCPIPClientApplication.closeConnection()
public MessageInfoInterface getMessageInfo()
throws TCPIPApplicationException,
java.io.IOException
TCPIPEXTClientApplication
getMessageInfo in interface TCPIPEXTClientApplicationgetMessageInfo in interface TCPIPEXTServerApplicationgetMessageInfo in class TCPIPEXTClientApplicationImplTCPIPApplicationException - on error
java.io.IOException - on i/o errorTCPIPEXTClientApplication.getMessageInfo()
public HL7v3MessageInfoInterface getHL7v3MessageInfo()
throws HL7ApplicationException
HL7v3ClientApplicationImpl
getHL7v3MessageInfo in interface HL7v3ClientApplicationgetHL7v3MessageInfo in interface HL7v3ServerApplicationgetHL7v3MessageInfo in class HL7v3ClientApplicationImplHL7v3MessageInfo - Object.
HL7ApplicationExceptionHL7ClientApplication.getHL7MessageInfo()
public java.net.Socket getSocket()
throws TCPIPApplicationException,
java.io.IOException
TCPIPClientApplication
getSocket in interface TCPIPEXTClientApplicationgetSocket in interface TCPIPEXTServerApplicationgetSocket in interface HL7v3ClientApplicationgetSocket in interface HL7v3ServerApplicationgetSocket in interface TCPIPClientApplicationgetSocket in interface TCPIPServerApplicationgetSocket in class TCPIPClientApplicationImplTCPIPApplicationException - on error
java.io.IOException - on i/o errorTCPIPClientApplication.getSocket()public TCPIPServerConfigInfoInterface getTCPIPInboundConfigInfo()
TCPIPEXTServerApplication
getTCPIPInboundConfigInfo in interface TCPIPEXTServerApplicationgetTCPIPInboundConfigInfo in interface HL7v3ServerApplicationgetTCPIPInboundConfigInfo in interface TCPIPServerApplicationTCPIPServerConfigInfo - Object.
TCPIPServerApplication.getTCPIPInboundConfigInfo()public void setTCPIPInboundConfigInfo(TCPIPServerConfigInfo inboundConfigInfo)
inboundConfigInfo - public TCPIPServerGeneralInfo getServerGeneralInfo()
public void setServerGeneralInfo(TCPIPServerGeneralInfo serverGeneralInfo)
serverGeneralInfo - public TCPIPServerSocketInfo getServerSocketInfo()
public void setServerSocketInfo(TCPIPServerSocketInfo serverSocketInfo)
serverSocketInfo - public TCPIPServerScheduleInfo getServerScheduleInfo()
public void setServerScheduleInfo(TCPIPServerScheduleInfo serverScheduleInfo)
serverScheduleInfo -
protected void checkIfClosed()
throws TCPIPApplicationException
TCPIPClientApplicationImpl
checkIfClosed in class TCPIPClientApplicationImplTCPIPApplicationException - if the Application Connection
associated with this application was already closed.TCPIPClientApplicationImpl.checkIfClosed()public TCPIPServerApplicationConnection getServerApplicationConnection()
public void setServerApplicationConnection(TCPIPServerApplicationConnection serverAppConn)
public javax.resource.spi.ResourceAdapter getResourceAdapter()
TCPIPClientApplicationImpl
getResourceAdapter in class TCPIPClientApplicationImplTCPIPClientApplicationImpl.getResourceAdapter()
public StateHandler getStateHandler()
throws TCPIPApplicationException
TCPIPClientApplicationImpl
getStateHandler in class TCPIPClientApplicationImplTCPIPApplicationException - up on errorTCPIPClientApplicationImpl.getStateHandler()
public java.lang.String getState()
throws TCPIPApplicationException
TCPIPClientApplication
getState in interface TCPIPEXTClientApplicationgetState in interface TCPIPEXTServerApplicationgetState in interface HL7v3ClientApplicationgetState in interface HL7v3ServerApplicationgetState in interface TCPIPClientApplicationgetState in interface TCPIPServerApplicationgetState in class HL7v3ClientApplicationImplTCPIPApplicationException - on errorTCPIPClientApplication.getState()
public void setState(java.lang.String stateValue)
throws TCPIPApplicationException
TCPIPClientApplication
setState in interface TCPIPEXTClientApplicationsetState in interface TCPIPEXTServerApplicationsetState in interface HL7v3ClientApplicationsetState in interface HL7v3ServerApplicationsetState in interface TCPIPClientApplicationsetState in interface TCPIPServerApplicationsetState in class TCPIPClientApplicationImplstateValue - The state value to set
TCPIPApplicationException - on errorcom.stc.connector.appconn.tcpip.model.TCPIPClientApplication#setState()public int getMaxDataSize()
TCPIPClientApplication
getMaxDataSize in interface TCPIPEXTClientApplicationgetMaxDataSize in interface TCPIPEXTServerApplicationgetMaxDataSize in interface HL7v3ClientApplicationgetMaxDataSize in interface HL7v3ServerApplicationgetMaxDataSize in interface TCPIPClientApplicationgetMaxDataSize in interface TCPIPServerApplicationgetMaxDataSize in class TCPIPClientApplicationImplTCPIPClientApplication.getMaxDataSize()
public void setMaxDataSize(int maxDataSize)
throws TCPIPApplicationException
TCPIPClientApplication
setMaxDataSize in interface TCPIPEXTClientApplicationsetMaxDataSize in interface TCPIPEXTServerApplicationsetMaxDataSize in interface HL7v3ClientApplicationsetMaxDataSize in interface HL7v3ServerApplicationsetMaxDataSize in interface TCPIPClientApplicationsetMaxDataSize in interface TCPIPServerApplicationsetMaxDataSize in class TCPIPClientApplicationImplmaxDataSize - The maxDataSize to set
TCPIPApplicationException - on errorTCPIPClientApplication.setMaxDataSize(int)public boolean getDedicatedSessionMode()
TCPIPEXTServerApplication
getDedicatedSessionMode in interface TCPIPEXTServerApplicationgetDedicatedSessionMode in interface HL7v3ServerApplicationgetDedicatedSessionMode in interface TCPIPServerApplicationBoolean - Returns true or false.
TCPIPServerApplication.getDedicatedSessionMode()public void setDedicatedSessionMode(boolean dedicatedSessionMode)
TCPIPEXTServerApplication
setDedicatedSessionMode in interface TCPIPEXTServerApplicationsetDedicatedSessionMode in interface HL7v3ServerApplicationsetDedicatedSessionMode in interface TCPIPServerApplicationdedicatedSessionMode - The dedicatedSessionMode to set.TCPIPServerApplication.setDedicatedSessionMode(boolean)
public boolean isServerCloseNotification(java.lang.String closeCommand)
throws TCPIPApplicationException
TCPIPClientApplicationImpl
isServerCloseNotification in class TCPIPClientApplicationImplTCPIPApplicationExceptionTCPIPClientApplicationImpl.isServerCloseNotification(String)public byte[] getLeftOverFromLastRead()
getLeftOverFromLastRead in class TCPIPClientApplicationImplTCPIPClientApplicationImpl.getLeftOverFromLastRead()public void setLeftOverFromLastRead(byte[] bs)
setLeftOverFromLastRead in class TCPIPClientApplicationImplTCPIPClientApplicationImpl.setLeftOverFromLastRead(byte[])
public void updateMBeanProperty(java.lang.String propertyName,
java.lang.String propertyDisplayValue)
TCPIPClientApplicationImpl
updateMBeanProperty in class HL7v3ClientApplicationImplTCPIPClientApplicationImpl.updateMBeanProperty(java.lang.String, java.lang.String)
|
Sun Adapter for TCP/IP HL7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||