|
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.server.TCPIPServerSocketInfo
public class TCPIPServerSocketInfo
This class represents TCPIP ServerSocket configuration information. Basically, it represents the options of java ServerSocket and Socket. Note: Once the ServerSocket connection is established, the port and socketFactoryImplClassName are not allowed to change.
Field Summary | |
---|---|
static java.lang.String |
CONNECTION_TYPE_CLIENT
|
static java.lang.String |
CONNECTION_TYPE_SERVER
|
static java.lang.String |
INBOUND_TRIGGER_EVENT_ON_CONNECTION
|
static java.lang.String |
INBOUND_TRIGGER_EVENT_ON_MESSAGE
|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
TCPIPServerSocketInfo()
Constructor for TCPIPServerSocketInfo. |
|
TCPIPServerSocketInfo(com.stc.connector.framework.util.ConfigurationHelper aConfiguration)
Constructor for TCPIPServerSocketInfo. |
Method Summary | |
---|---|
void |
attachServerSocket(java.net.ServerSocket attachedServerSocket)
Attach a serverSocket object so the serverSocket options can be refreshed along with serverSocketInfo changes. |
void |
attachSocket(java.net.Socket attachedSocket)
Attach a socket object so the socket options can be refreshed along with socketInfo changes. |
java.net.ServerSocket |
getAttachedServerSocket()
Returns the attachedServerSocket. |
java.net.Socket |
getAttachedSocket()
Returns the attachedSocket. |
int |
getBacklog()
Returns the backlog which is the maximum length of the queue. |
TCPIPSocketEstablishmentInfoInterface |
getClientConnectionEstablishmentInfo()
|
java.lang.String |
getConnectionID()
Returns the connectionID. |
java.lang.String |
getConnectionType()
|
boolean |
getCreateConnection()
Returns the createConnection setting (true or false). |
java.lang.String |
getHost()
Returns the host. |
TCPIPServerConnectionManagementInfoInterface |
getInboundConnectionManagementInfo()
|
java.lang.String |
getInboundTriggerEvent()
|
com.stc.connector.framework.util.ConfigurationHelper |
getInitPropertiesInfo()
Returns the initial configuration. |
int |
getReceiveBufferSize()
Returns the receiveBufferSize. |
int |
getSendBufferSize()
Returns the sendBufferSize. |
int |
getServerPort()
Returns the serverPort. |
TCPIPServerPortBindingInfoInterface |
getServerPortBindingInfo()
|
java.lang.String |
getServerSocketFactoryImplClassName()
Returns the serverSocketFactoryImplClassName. |
int |
getServerSoTimeout()
Returns the server soTimeout. |
java.lang.String |
getServerWelcomeMessage()
|
int |
getSoLingerTimeout()
Returns the soLingerTimeout. |
int |
getSoTimeout()
Returns the soTimeout. |
boolean |
isClientConnectionType()
|
boolean |
isKeepAlive()
Checks whether the keepAlive option is on. |
boolean |
isOnConnectionInboundTriggerEvent()
|
boolean |
isOnMessageInboundTriggerEvent()
|
boolean |
isServerConnectionType()
|
boolean |
isSocketConnected()
Returns the socketConnected. |
boolean |
isSoLinger()
Checks whether the SoLinger option is on. |
boolean |
isTcpNoDelay()
Checks whether the TcpNoDelay option is on. |
boolean |
isThereAttachedServerSocket()
Method isThereAttachedServerSocket. |
boolean |
isThereAttachedSocket()
Method isThereAttachedSocket. |
void |
setBacklog(int backlog)
Sets the backlog which is the maximum length of the queue. |
void |
setClientConnectionEstablishmentInfo(TCPIPSocketEstablishmentInfo info)
|
void |
setConnectionID(java.lang.String connectionID)
Sets the connectionID. |
void |
setConnectionType(java.lang.String connectionType)
|
void |
setCreateConnection(boolean createConnection)
Sets the createConnection. |
void |
setHost(java.lang.String host)
Sets the host. |
void |
setInboundConnectionManagementInfo(TCPIPServerConnectionManagementInfo info)
|
void |
setInboundTriggerEvent(java.lang.String inboundTriggerEvent)
|
void |
setKeepAlive(boolean keepAlive)
Sets the keepAlive. |
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the receiveBufferSize. |
void |
setSendBufferSize(int sendBufferSize)
Sets the sendBufferSize. |
void |
setServerPort(int port)
Sets the server port. |
void |
setServerPortBindingInfo(TCPIPServerPortBindingInfo info)
|
void |
setServerSocketFactoryImplClassName(java.lang.String serverSocketFactoryImplClassName)
Sets the serverSocketFactoryImplClassName. |
void |
setServerSoTimeout(int soTimeout)
Sets the server soTimeout. |
void |
setServerWelcomeMessage(java.lang.String string)
|
void |
setSocketConnected()
Sets the socketConnected to true. |
void |
setSoLinger(boolean soLinger)
Sets the soLinger. |
void |
setSoLingerTimeout(int soLingerTimeout)
Sets the soLingerTimeout. |
void |
setSoTimeout(int soTimeout)
Sets the soTimeout. |
void |
setTcpNoDelay(boolean tcpNoDelay)
Sets the tcpNoDelay. |
void |
validate()
Validates the socket configuration settings. |
void |
validate(java.lang.String integrationServerType)
Validates the socket configuration settings against the integrationServerType. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
public static final java.lang.String CONNECTION_TYPE_SERVER
public static final java.lang.String CONNECTION_TYPE_CLIENT
public static final java.lang.String INBOUND_TRIGGER_EVENT_ON_CONNECTION
public static final java.lang.String INBOUND_TRIGGER_EVENT_ON_MESSAGE
Constructor Detail |
---|
public TCPIPServerSocketInfo() throws TCPIPApplicationException
TCPIPApplicationException
- on error.public TCPIPServerSocketInfo(com.stc.connector.framework.util.ConfigurationHelper aConfiguration) throws TCPIPApplicationException
aConfiguration
- The initial properties into.
TCPIPApplicationException
- on error.Method Detail |
---|
public java.lang.String getConnectionType()
getConnectionType
in interface TCPIPServerSocketInfoInterface
public boolean isServerConnectionType()
isServerConnectionType
in interface TCPIPServerSocketInfoInterface
public boolean isClientConnectionType()
isClientConnectionType
in interface TCPIPServerSocketInfoInterface
public void setConnectionType(java.lang.String connectionType) throws TCPIPApplicationException
connectionType
- the value to set
TCPIPApplicationException
public java.lang.String getInboundTriggerEvent()
getInboundTriggerEvent
in interface TCPIPServerSocketInfoInterface
public boolean isOnConnectionInboundTriggerEvent()
isOnConnectionInboundTriggerEvent
in interface TCPIPServerSocketInfoInterface
public boolean isOnMessageInboundTriggerEvent()
isOnMessageInboundTriggerEvent
in interface TCPIPServerSocketInfoInterface
public java.lang.String getServerWelcomeMessage()
getServerWelcomeMessage
in interface TCPIPServerSocketInfoInterface
public void setInboundTriggerEvent(java.lang.String inboundTriggerEvent) throws TCPIPApplicationException
inboundTriggerEvent
- the value to set
TCPIPApplicationException
public void setServerWelcomeMessage(java.lang.String string)
string
- the value to setpublic java.lang.String getHost()
getHost
in interface TCPIPServerSocketInfoInterface
public int getServerPort()
getServerPort
in interface TCPIPServerSocketInfoInterface
public int getBacklog()
getBacklog
in interface TCPIPServerSocketInfoInterface
public int getServerSoTimeout()
getServerSoTimeout
in interface TCPIPServerSocketInfoInterface
public boolean isKeepAlive()
isKeepAlive
in interface TCPIPServerSocketInfoInterface
public int getReceiveBufferSize()
getReceiveBufferSize
in interface TCPIPServerSocketInfoInterface
public int getSendBufferSize()
getSendBufferSize
in interface TCPIPServerSocketInfoInterface
public boolean isSoLinger()
isSoLinger
in interface TCPIPServerSocketInfoInterface
public int getSoLingerTimeout()
getSoLingerTimeout
in interface TCPIPServerSocketInfoInterface
public int getSoTimeout()
getSoTimeout
in interface TCPIPServerSocketInfoInterface
public boolean isTcpNoDelay()
isTcpNoDelay
in interface TCPIPServerSocketInfoInterface
public java.lang.String getServerSocketFactoryImplClassName()
getServerSocketFactoryImplClassName
in interface TCPIPServerSocketInfoInterface
public void setHost(java.lang.String host) throws TCPIPApplicationException
host
- The host to set
TCPIPApplicationException
- on errorpublic void setServerPort(int port) throws TCPIPApplicationException
port
- The server port to set
TCPIPApplicationException
- on errorpublic void setBacklog(int backlog) throws TCPIPApplicationException
backlog
- The backLog to set
TCPIPApplicationException
- on errorpublic void setServerSoTimeout(int soTimeout) throws TCPIPApplicationException, java.io.IOException
setServerSoTimeout
in interface TCPIPServerSocketInfoInterface
soTimeout
- The server soTimeout to set
TCPIPApplicationException
- on error
java.io.IOException
- on i/o error.public void setKeepAlive(boolean keepAlive) throws java.io.IOException
setKeepAlive
in interface TCPIPServerSocketInfoInterface
keepAlive
- The keepAlive to set
java.io.IOException
- on i/o error.public void setReceiveBufferSize(int receiveBufferSize) throws TCPIPApplicationException, java.io.IOException
setReceiveBufferSize
in interface TCPIPServerSocketInfoInterface
receiveBufferSize
- The receiveBufferSize to set
TCPIPApplicationException
- on error
java.io.IOException
- on i/o error.public void setSendBufferSize(int sendBufferSize) throws TCPIPApplicationException, java.io.IOException
setSendBufferSize
in interface TCPIPServerSocketInfoInterface
sendBufferSize
- The sendBufferSize to set
TCPIPApplicationException
- on error
java.io.IOException
- on i/o error.public void setSoLinger(boolean soLinger) throws java.io.IOException
setSoLinger
in interface TCPIPServerSocketInfoInterface
soLinger
- The soLinger to set
java.io.IOException
- on i/o error.public void setSoLingerTimeout(int soLingerTimeout) throws java.io.IOException
setSoLingerTimeout
in interface TCPIPServerSocketInfoInterface
soLingerTimeout
- The soLingerTimeout to set
java.io.IOException
- on i/o error.public void setSoTimeout(int soTimeout) throws TCPIPApplicationException, java.io.IOException
setSoTimeout
in interface TCPIPServerSocketInfoInterface
soTimeout
- The soTimeout to set
TCPIPApplicationException
- on error
java.io.IOException
- on i/o error.public void setTcpNoDelay(boolean tcpNoDelay) throws java.io.IOException
setTcpNoDelay
in interface TCPIPServerSocketInfoInterface
tcpNoDelay
- The tcpNoDelay to set
java.io.IOException
- on i/o error.public java.lang.String getConnectionID()
public boolean getCreateConnection()
getCreateConnection
in interface TCPIPServerSocketInfoInterface
public void setConnectionID(java.lang.String connectionID)
connectionID
- The connectionID to setpublic void setCreateConnection(boolean createConnection)
createConnection
- The createConnection flag to setpublic void setServerSocketFactoryImplClassName(java.lang.String serverSocketFactoryImplClassName) throws TCPIPApplicationException
setServerSocketFactoryImplClassName
in interface TCPIPServerSocketInfoInterface
serverSocketFactoryImplClassName
- The serverSocketFactoryImplClassName to set
TCPIPApplicationException
- on errorpublic com.stc.connector.framework.util.ConfigurationHelper getInitPropertiesInfo()
public boolean isSocketConnected()
public void setSocketConnected()
public void validate() throws TCPIPApplicationException
TCPIPApplicationException
- on errorpublic void validate(java.lang.String integrationServerType) throws TCPIPApplicationException
integrationServerType
- The integrationServerType to validate
TCPIPApplicationException
- on errorpublic java.net.ServerSocket getAttachedServerSocket()
public java.net.Socket getAttachedSocket()
public void attachServerSocket(java.net.ServerSocket attachedServerSocket)
attachedServerSocket
- The attachedServerSocket to setpublic void attachSocket(java.net.Socket attachedSocket)
attachedSocket
- The attachedSocket to setpublic boolean isThereAttachedSocket()
public boolean isThereAttachedServerSocket()
public TCPIPServerPortBindingInfoInterface getServerPortBindingInfo()
getServerPortBindingInfo
in interface TCPIPServerSocketInfoInterface
public void setServerPortBindingInfo(TCPIPServerPortBindingInfo info)
info
- the value to setpublic TCPIPServerConnectionManagementInfoInterface getInboundConnectionManagementInfo()
getInboundConnectionManagementInfo
in interface TCPIPServerSocketInfoInterface
public void setInboundConnectionManagementInfo(TCPIPServerConnectionManagementInfo info)
info
- the value to setpublic TCPIPSocketEstablishmentInfoInterface getClientConnectionEstablishmentInfo()
getClientConnectionEstablishmentInfo
in interface TCPIPServerSocketInfoInterface
public void setClientConnectionEstablishmentInfo(TCPIPSocketEstablishmentInfo info)
info
- the value to set
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |