|
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.model.server.TCPIPServerApplicationImpl
public class TCPIPServerApplicationImpl
This class implements the 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 | |
---|---|
TCPIPServerApplicationImpl()
Default constructor for WSDL generation. |
|
TCPIPServerApplicationImpl(TCPIPServerApplicationConnection serverAppConn,
java.lang.String appName,
TCPIPMonitorData aMonitorData)
Creates a new instance of TCPIPServerApplicationImpl |
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. |
com.stc.connector.management.util.ObjectReference |
getMonitor()
|
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 which 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.model.TCPIPServerApplication |
---|
receiveBytes, receiveString, receiveString, sendBytes, sendString, sendString |
Field Detail |
---|
public static final java.lang.String version
Constructor Detail |
---|
public TCPIPServerApplicationImpl()
public TCPIPServerApplicationImpl(TCPIPServerApplicationConnection serverAppConn, java.lang.String appName, TCPIPMonitorData aMonitorData)
serverAppConn
- The TCPIPServerApplicationConnection which
created this instance of application.appName
- The applicatin name.aMonitorData
- The TCPIPMonitorData objectMethod Detail |
---|
public boolean isClosed() throws TCPIPApplicationException
TCPIPClientApplication
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 TCPIPClientApplication
closeConnection
in interface TCPIPServerApplication
closeConnection
in class TCPIPClientApplicationImpl
TCPIPApplicationException
- on errorTCPIPClientApplication.closeConnection()
public java.net.Socket getSocket() throws TCPIPApplicationException, java.io.IOException
TCPIPClientApplication
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()
TCPIPServerApplication
getTCPIPInboundConfigInfo
in interface TCPIPServerApplication
TCPIPServerApplication.getTCPIPInboundConfigInfo()
public void setTCPIPInboundConfigInfo(TCPIPServerConfigInfo inboundConfigInfo)
inboundConfigInfo
- public TCPIPServerGeneralInfo getServerGeneralInfo()
public void setServerGeneralInfo(TCPIPServerGeneralInfo serverGeneralInfo)
serverGeneralInfo
- the value to be setpublic TCPIPServerSocketInfo getServerSocketInfo()
public void setServerSocketInfo(TCPIPServerSocketInfo serverSocketInfo)
serverSocketInfo
- the value to be setpublic TCPIPServerScheduleInfo getServerScheduleInfo()
public void setServerScheduleInfo(TCPIPServerScheduleInfo serverScheduleInfo)
serverScheduleInfo
- the value to be setprotected 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 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 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 TCPIPClientApplication
getMaxDataSize
in interface TCPIPServerApplication
getMaxDataSize
in class TCPIPClientApplicationImpl
TCPIPClientApplication.getMaxDataSize()
public void setMaxDataSize(int maxDataSize) throws TCPIPApplicationException
TCPIPClientApplication
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()
TCPIPServerApplication
getDedicatedSessionMode
in interface TCPIPServerApplication
TCPIPServerApplication.getDedicatedSessionMode()
public void setDedicatedSessionMode(boolean dedicatedSessionMode)
TCPIPServerApplication
setDedicatedSessionMode
in interface TCPIPServerApplication
dedicatedSessionMode
- The dedicatedSessionMode to setTCPIPServerApplication.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)
public com.stc.connector.management.util.ObjectReference getMonitor()
getMonitor
in class TCPIPClientApplicationImpl
TCPIPClientApplicationImpl.getMonitor()
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |