|
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.ext.server.TCPIPEXTServerApplicationImpl
public class TCPIPEXTServerApplicationImpl
This class implements the extended TCPIP 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 | |
|---|---|
TCPIPEXTServerApplicationImpl()
Default constructor for WSDL generation. |
|
TCPIPEXTServerApplicationImpl(TCPIPServerApplicationConnection serverAppConn,
java.lang.String appName,
TCPIPMonitorData aMonitorData)
Constructor for TCPIPEXTServerApplicationImpl. |
|
| 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. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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.ext.TCPIPEXTClientApplication |
|---|
getTCPIPOutboundConfigInfo, receiveBytes, receiveString, receiveString, sendBytes, 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 TCPIPEXTServerApplicationImpl()
public TCPIPEXTServerApplicationImpl(TCPIPServerApplicationConnection serverAppConn,
java.lang.String appName,
TCPIPMonitorData aMonitorData)
serverAppConn - TCPIPServerApplicationConnectionappName - The applicatin name.aMonitorData - The TCPIPMonitorData object| Method Detail |
|---|
public boolean isClosed()
throws TCPIPApplicationException
TCPIPClientApplication
isClosed in interface TCPIPEXTClientApplicationisClosed in interface TCPIPEXTServerApplicationisClosed 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 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 java.net.Socket getSocket()
throws TCPIPApplicationException,
java.io.IOException
TCPIPClientApplication
getSocket in interface TCPIPEXTClientApplicationgetSocket in interface TCPIPEXTServerApplicationgetSocket 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 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 TCPIPClientApplicationgetState in interface TCPIPServerApplicationgetState in class TCPIPClientApplicationImplTCPIPApplicationException - on errorTCPIPClientApplication.getState()
public void setState(java.lang.String stateValue)
throws TCPIPApplicationException
TCPIPClientApplication
setState in interface TCPIPEXTClientApplicationsetState in interface TCPIPEXTServerApplicationsetState 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 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 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 TCPIPServerApplicationBoolean - Returns true or false.
TCPIPServerApplication.getDedicatedSessionMode()public void setDedicatedSessionMode(boolean dedicatedSessionMode)
TCPIPEXTServerApplication
setDedicatedSessionMode in interface TCPIPEXTServerApplicationsetDedicatedSessionMode 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 TCPIPClientApplicationImplTCPIPClientApplicationImpl.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 | ||||||||