|
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.TCPIPSocketInfo
public class TCPIPSocketInfo
This class represents TCPIP Socket configuration information. Basically, it represents java Socket options. Note: Once the socket connection is established, the host, 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 |
version
|
Constructor Summary | |
---|---|
TCPIPSocketInfo()
Constructor for TCPIPSocketInfo. |
|
TCPIPSocketInfo(com.stc.connector.framework.util.ConfigurationHelper aConfiguration)
Constructor for TCPIPSocketInfo. |
Method Summary | |
---|---|
void |
attachSocket(java.net.Socket attachedSocket)
Attach a socket object so the socket options can be refreshed along with socketInfo changes. |
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()
|
java.lang.String |
getHost()
Returns the host. |
com.stc.connector.framework.util.ConfigurationHelper |
getInitPropertiesInfo()
Returns the initial configuration. |
int |
getPort()
Returns the port. |
int |
getReceiveBufferSize()
Returns the receiveBufferSize. |
int |
getSendBufferSize()
Returns the sendBufferSize. |
TCPIPServerPortBindingInfoInterface |
getServerPortBindingInfo()
|
int |
getServerSoTimeout()
Returns the server soTimeout. |
java.lang.String |
getServerWelcomeMessage()
|
java.lang.String |
getSocketFactoryImplClassName()
Returns the socketFactoryImplClassName. |
int |
getSoLingerTimeout()
Returns the soLingerTimeout. |
int |
getSoTimeout()
Returns the soTimeout. |
boolean |
isClientConnectionType()
|
boolean |
isKeepAlive()
Checks whether the keepAlive option is on. |
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 |
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 |
setHost(java.lang.String host)
Sets the host. |
void |
setKeepAlive(boolean keepAlive)
Sets the keepAlive. |
void |
setPort(int port)
Sets the port. |
void |
setReceiveBufferSize(int receiveBufferSize)
Sets the receiveBufferSize. |
void |
setSendBufferSize(int sendBufferSize)
Sets the sendBufferSize. |
void |
setServerPortBindingInfo(TCPIPServerPortBindingInfo info)
|
void |
setServerSoTimeout(int soTimeout)
Sets the server soTimeout. |
void |
setServerWelcomeMessage(java.lang.String string)
|
void |
setSocketConnected()
Sets the socketConnected to true. |
void |
setSocketFactoryImplClassName(java.lang.String socketFactoryImplClassName)
Sets the socketFactoryImplClassName. |
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. |
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
Constructor Detail |
---|
public TCPIPSocketInfo() throws TCPIPApplicationException
TCPIPApplicationException
- on error.public TCPIPSocketInfo(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 TCPIPSocketInfoInterface
public boolean isServerConnectionType()
isServerConnectionType
in interface TCPIPSocketInfoInterface
public boolean isClientConnectionType()
isClientConnectionType
in interface TCPIPSocketInfoInterface
public void setConnectionType(java.lang.String connectionType) throws TCPIPApplicationException
connectionType
-
TCPIPApplicationException
public int getServerSoTimeout()
getServerSoTimeout
in interface TCPIPSocketInfoInterface
public void setServerSoTimeout(int soTimeout) throws TCPIPApplicationException, java.io.IOException
setServerSoTimeout
in interface TCPIPSocketInfoInterface
soTimeout
- The server soTimeout to set
TCPIPApplicationException
- on error
java.io.IOException
- on i/o error.public java.lang.String getServerWelcomeMessage()
getServerWelcomeMessage
in interface TCPIPSocketInfoInterface
public void setServerWelcomeMessage(java.lang.String string)
string
- public java.lang.String getHost()
getHost
in interface TCPIPSocketInfoInterface
public boolean isKeepAlive()
isKeepAlive
in interface TCPIPSocketInfoInterface
public int getPort()
getPort
in interface TCPIPSocketInfoInterface
public int getBacklog()
getBacklog
in interface TCPIPSocketInfoInterface
public int getReceiveBufferSize()
getReceiveBufferSize
in interface TCPIPSocketInfoInterface
public int getSendBufferSize()
getSendBufferSize
in interface TCPIPSocketInfoInterface
public boolean isSoLinger()
isSoLinger
in interface TCPIPSocketInfoInterface
public int getSoLingerTimeout()
getSoLingerTimeout
in interface TCPIPSocketInfoInterface
public int getSoTimeout()
getSoTimeout
in interface TCPIPSocketInfoInterface
public boolean isTcpNoDelay()
isTcpNoDelay
in interface TCPIPSocketInfoInterface
public void setHost(java.lang.String host) throws TCPIPApplicationException
host
- The host to set
TCPIPApplicationException
- on errorpublic void setPort(int port) throws TCPIPApplicationException
port
- The port to set
TCPIPApplicationException
- on errorpublic void setBacklog(int backlog) throws TCPIPApplicationException
backlog
- The backLog to set
TCPIPApplicationException
- on errorpublic void setSocketFactoryImplClassName(java.lang.String socketFactoryImplClassName) throws TCPIPApplicationException
socketFactoryImplClassName
- The socketFactoryImplClassName to set
TCPIPApplicationException
- on errorpublic void setKeepAlive(boolean keepAlive) throws java.io.IOException
setKeepAlive
in interface TCPIPSocketInfoInterface
keepAlive
- The keepAlive to set
IOExeption
- on i/oerror
java.io.IOException
public void setReceiveBufferSize(int receiveBufferSize) throws TCPIPApplicationException, java.io.IOException
setReceiveBufferSize
in interface TCPIPSocketInfoInterface
receiveBufferSize
- The receiveBufferSize to set
TCPIPApplicationException
- on error
IOExeption
- on i/oerror
java.io.IOException
public void setSendBufferSize(int sendBufferSize) throws TCPIPApplicationException, java.io.IOException
setSendBufferSize
in interface TCPIPSocketInfoInterface
sendBufferSize
- The sendBufferSize to set
TCPIPApplicationException
- on error
IOExeption
- on i/oerror
java.io.IOException
public void setSoLinger(boolean soLinger) throws java.io.IOException
setSoLinger
in interface TCPIPSocketInfoInterface
soLinger
- The soLinger to set
IOExeption
- on i/oerror
java.io.IOException
public void setSoLingerTimeout(int soLingerTimeout) throws java.io.IOException
setSoLingerTimeout
in interface TCPIPSocketInfoInterface
soLingerTimeout
- The soLingerTimeout to set
IOExeption
- on i/oerror
java.io.IOException
public void setSoTimeout(int soTimeout) throws TCPIPApplicationException, java.io.IOException
setSoTimeout
in interface TCPIPSocketInfoInterface
soTimeout
- The soTimeout to set
TCPIPApplicationException
- on error
IOExeption
- on i/oerror
java.io.IOException
public void setTcpNoDelay(boolean tcpNoDelay) throws java.io.IOException
setTcpNoDelay
in interface TCPIPSocketInfoInterface
tcpNoDelay
- The tcpNoDelay to set
IOExeption
- on i/oerror
java.io.IOException
public java.lang.String getConnectionID()
public void setConnectionID(java.lang.String connectionID)
connectionID
- The connectionID to setpublic java.lang.String getSocketFactoryImplClassName()
getSocketFactoryImplClassName
in interface TCPIPSocketInfoInterface
public com.stc.connector.framework.util.ConfigurationHelper getInitPropertiesInfo()
public boolean isSocketConnected()
public void setSocketConnected()
public void validate() throws TCPIPApplicationException
TCPIPApplicationException
- on errorpublic boolean isThereAttachedSocket()
public java.net.Socket getAttachedSocket()
public void attachSocket(java.net.Socket attachedSocket)
attachedSocket
- The attachedSocket to setpublic TCPIPSocketEstablishmentInfoInterface getClientConnectionEstablishmentInfo()
getClientConnectionEstablishmentInfo
in interface TCPIPSocketInfoInterface
public void setClientConnectionEstablishmentInfo(TCPIPSocketEstablishmentInfo info)
info
- an instance of TCPIPSocketEstablishmentInfopublic TCPIPServerPortBindingInfoInterface getServerPortBindingInfo()
getServerPortBindingInfo
in interface TCPIPSocketInfoInterface
public void setServerPortBindingInfo(TCPIPServerPortBindingInfo info)
info
- an instance of TCPIPServerPortBindingInfo
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |