|
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 TCPIPServerSocketInfoInterfacepublic boolean isServerConnectionType()
isServerConnectionType in interface TCPIPServerSocketInfoInterfacepublic boolean isClientConnectionType()
isClientConnectionType in interface TCPIPServerSocketInfoInterface
public void setConnectionType(java.lang.String connectionType)
throws TCPIPApplicationException
connectionType - the value to set
TCPIPApplicationExceptionpublic java.lang.String getInboundTriggerEvent()
getInboundTriggerEvent in interface TCPIPServerSocketInfoInterfacepublic boolean isOnConnectionInboundTriggerEvent()
isOnConnectionInboundTriggerEvent in interface TCPIPServerSocketInfoInterfacepublic boolean isOnMessageInboundTriggerEvent()
isOnMessageInboundTriggerEvent in interface TCPIPServerSocketInfoInterfacepublic java.lang.String getServerWelcomeMessage()
getServerWelcomeMessage in interface TCPIPServerSocketInfoInterface
public void setInboundTriggerEvent(java.lang.String inboundTriggerEvent)
throws TCPIPApplicationException
inboundTriggerEvent - the value to set
TCPIPApplicationExceptionpublic void setServerWelcomeMessage(java.lang.String string)
string - the value to setpublic java.lang.String getHost()
getHost in interface TCPIPServerSocketInfoInterfacepublic int getServerPort()
getServerPort in interface TCPIPServerSocketInfoInterfacepublic int getBacklog()
getBacklog in interface TCPIPServerSocketInfoInterfacepublic int getServerSoTimeout()
getServerSoTimeout in interface TCPIPServerSocketInfoInterfacepublic boolean isKeepAlive()
isKeepAlive in interface TCPIPServerSocketInfoInterfacepublic int getReceiveBufferSize()
getReceiveBufferSize in interface TCPIPServerSocketInfoInterfacepublic int getSendBufferSize()
getSendBufferSize in interface TCPIPServerSocketInfoInterfacepublic boolean isSoLinger()
isSoLinger in interface TCPIPServerSocketInfoInterfacepublic int getSoLingerTimeout()
getSoLingerTimeout in interface TCPIPServerSocketInfoInterfacepublic int getSoTimeout()
getSoTimeout in interface TCPIPServerSocketInfoInterfacepublic boolean isTcpNoDelay()
isTcpNoDelay in interface TCPIPServerSocketInfoInterfacepublic java.lang.String getServerSocketFactoryImplClassName()
getServerSocketFactoryImplClassName in interface TCPIPServerSocketInfoInterface
public void setHost(java.lang.String host)
throws TCPIPApplicationException
host - The host to set
TCPIPApplicationException - on error
public void setServerPort(int port)
throws TCPIPApplicationException
port - The server port to set
TCPIPApplicationException - on error
public void setBacklog(int backlog)
throws TCPIPApplicationException
backlog - The backLog to set
TCPIPApplicationException - on error
public void setServerSoTimeout(int soTimeout)
throws TCPIPApplicationException,
java.io.IOException
setServerSoTimeout in interface TCPIPServerSocketInfoInterfacesoTimeout - 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 TCPIPServerSocketInfoInterfacekeepAlive - The keepAlive to set
java.io.IOException - on i/o error.
public void setReceiveBufferSize(int receiveBufferSize)
throws TCPIPApplicationException,
java.io.IOException
setReceiveBufferSize in interface TCPIPServerSocketInfoInterfacereceiveBufferSize - 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 TCPIPServerSocketInfoInterfacesendBufferSize - 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 TCPIPServerSocketInfoInterfacesoLinger - The soLinger to set
java.io.IOException - on i/o error.
public void setSoLingerTimeout(int soLingerTimeout)
throws java.io.IOException
setSoLingerTimeout in interface TCPIPServerSocketInfoInterfacesoLingerTimeout - The soLingerTimeout to set
java.io.IOException - on i/o error.
public void setSoTimeout(int soTimeout)
throws TCPIPApplicationException,
java.io.IOException
setSoTimeout in interface TCPIPServerSocketInfoInterfacesoTimeout - 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 TCPIPServerSocketInfoInterfacetcpNoDelay - The tcpNoDelay to set
java.io.IOException - on i/o error.public java.lang.String getConnectionID()
public boolean getCreateConnection()
getCreateConnection in interface TCPIPServerSocketInfoInterfacepublic void setConnectionID(java.lang.String connectionID)
connectionID - The connectionID to setpublic void setCreateConnection(boolean createConnection)
createConnection - The createConnection flag to set
public void setServerSocketFactoryImplClassName(java.lang.String serverSocketFactoryImplClassName)
throws TCPIPApplicationException
setServerSocketFactoryImplClassName in interface TCPIPServerSocketInfoInterfaceserverSocketFactoryImplClassName - 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 error
public 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 TCPIPServerSocketInfoInterfacepublic void setServerPortBindingInfo(TCPIPServerPortBindingInfo info)
info - the value to setpublic TCPIPServerConnectionManagementInfoInterface getInboundConnectionManagementInfo()
getInboundConnectionManagementInfo in interface TCPIPServerSocketInfoInterfacepublic void setInboundConnectionManagementInfo(TCPIPServerConnectionManagementInfo info)
info - the value to setpublic TCPIPSocketEstablishmentInfoInterface getClientConnectionEstablishmentInfo()
getClientConnectionEstablishmentInfo in interface TCPIPServerSocketInfoInterfacepublic 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 | ||||||||