|
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 objectMethod Detail |
---|
public boolean isClosed() throws TCPIPApplicationException
TCPIPClientApplication
isClosed
in interface TCPIPEXTClientApplication
isClosed
in interface TCPIPEXTServerApplication
isClosed
in interface TCPIPClientApplication
isClosed
in interface TCPIPServerApplication
isClosed
in class TCPIPClientApplicationImpl
TCPIPApplicationException
- on errorTCPIPClientApplication.isClosed()
public void closeConnection() throws TCPIPApplicationException
TCPIPClientApplication
closeConnection
in interface TCPIPEXTClientApplication
closeConnection
in interface TCPIPEXTServerApplication
closeConnection
in interface TCPIPClientApplication
closeConnection
in interface TCPIPServerApplication
closeConnection
in class TCPIPClientApplicationImpl
TCPIPApplicationException
- on errorTCPIPClientApplication.closeConnection()
public MessageInfoInterface getMessageInfo() throws TCPIPApplicationException, java.io.IOException
TCPIPEXTClientApplication
getMessageInfo
in interface TCPIPEXTClientApplication
getMessageInfo
in interface TCPIPEXTServerApplication
getMessageInfo
in class TCPIPEXTClientApplicationImpl
TCPIPApplicationException
- on error
java.io.IOException
- on i/o errorTCPIPEXTClientApplication.getMessageInfo()
public java.net.Socket getSocket() throws TCPIPApplicationException, java.io.IOException
TCPIPClientApplication
getSocket
in interface TCPIPEXTClientApplication
getSocket
in interface TCPIPEXTServerApplication
getSocket
in interface TCPIPClientApplication
getSocket
in interface TCPIPServerApplication
getSocket
in class TCPIPClientApplicationImpl
TCPIPApplicationException
- on error
java.io.IOException
- on i/o errorTCPIPClientApplication.getSocket()
public TCPIPServerConfigInfoInterface getTCPIPInboundConfigInfo()
TCPIPEXTServerApplication
getTCPIPInboundConfigInfo
in interface TCPIPEXTServerApplication
getTCPIPInboundConfigInfo
in interface TCPIPServerApplication
TCPIPServerConfigInfo
- 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 TCPIPClientApplicationImpl
TCPIPApplicationException
- 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 TCPIPClientApplicationImpl
TCPIPClientApplicationImpl.getResourceAdapter()
public StateHandler getStateHandler() throws TCPIPApplicationException
TCPIPClientApplicationImpl
getStateHandler
in class TCPIPClientApplicationImpl
TCPIPApplicationException
- up on errorTCPIPClientApplicationImpl.getStateHandler()
public java.lang.String getState() throws TCPIPApplicationException
TCPIPClientApplication
getState
in interface TCPIPEXTClientApplication
getState
in interface TCPIPEXTServerApplication
getState
in interface TCPIPClientApplication
getState
in interface TCPIPServerApplication
getState
in class TCPIPClientApplicationImpl
TCPIPApplicationException
- on errorTCPIPClientApplication.getState()
public void setState(java.lang.String stateValue) throws TCPIPApplicationException
TCPIPClientApplication
setState
in interface TCPIPEXTClientApplication
setState
in interface TCPIPEXTServerApplication
setState
in interface TCPIPClientApplication
setState
in interface TCPIPServerApplication
setState
in class TCPIPClientApplicationImpl
stateValue
- The state value to set
TCPIPApplicationException
- on errorcom.stc.connector.appconn.tcpip.model.TCPIPClientApplication#setState()
public int getMaxDataSize()
TCPIPClientApplication
getMaxDataSize
in interface TCPIPEXTClientApplication
getMaxDataSize
in interface TCPIPEXTServerApplication
getMaxDataSize
in interface TCPIPClientApplication
getMaxDataSize
in interface TCPIPServerApplication
getMaxDataSize
in class TCPIPClientApplicationImpl
TCPIPClientApplication.getMaxDataSize()
public void setMaxDataSize(int maxDataSize) throws TCPIPApplicationException
TCPIPClientApplication
setMaxDataSize
in interface TCPIPEXTClientApplication
setMaxDataSize
in interface TCPIPEXTServerApplication
setMaxDataSize
in interface TCPIPClientApplication
setMaxDataSize
in interface TCPIPServerApplication
setMaxDataSize
in class TCPIPClientApplicationImpl
maxDataSize
- The maxDataSize to set
TCPIPApplicationException
- on errorTCPIPClientApplication.setMaxDataSize(int)
public boolean getDedicatedSessionMode()
TCPIPEXTServerApplication
getDedicatedSessionMode
in interface TCPIPEXTServerApplication
getDedicatedSessionMode
in interface TCPIPServerApplication
Boolean
- Returns true or false.
TCPIPServerApplication.getDedicatedSessionMode()
public void setDedicatedSessionMode(boolean dedicatedSessionMode)
TCPIPEXTServerApplication
setDedicatedSessionMode
in interface TCPIPEXTServerApplication
setDedicatedSessionMode
in interface TCPIPServerApplication
dedicatedSessionMode
- The dedicatedSessionMode to set.TCPIPServerApplication.setDedicatedSessionMode(boolean)
public boolean isServerCloseNotification(java.lang.String closeCommand) throws TCPIPApplicationException
TCPIPClientApplicationImpl
isServerCloseNotification
in class TCPIPClientApplicationImpl
TCPIPApplicationException
TCPIPClientApplicationImpl.isServerCloseNotification(String)
public byte[] getLeftOverFromLastRead()
getLeftOverFromLastRead
in class TCPIPClientApplicationImpl
TCPIPClientApplicationImpl.getLeftOverFromLastRead()
public void setLeftOverFromLastRead(byte[] bs)
setLeftOverFromLastRead
in class TCPIPClientApplicationImpl
TCPIPClientApplicationImpl.setLeftOverFromLastRead(byte[])
public void updateMBeanProperty(java.lang.String propertyName, java.lang.String propertyDisplayValue)
TCPIPClientApplicationImpl
updateMBeanProperty
in class TCPIPClientApplicationImpl
TCPIPClientApplicationImpl.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 |