|
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 TCPIPSocketInfoInterfacepublic boolean isServerConnectionType()
isServerConnectionType in interface TCPIPSocketInfoInterfacepublic boolean isClientConnectionType()
isClientConnectionType in interface TCPIPSocketInfoInterface
public void setConnectionType(java.lang.String connectionType)
throws TCPIPApplicationException
connectionType -
TCPIPApplicationExceptionpublic int getServerSoTimeout()
getServerSoTimeout in interface TCPIPSocketInfoInterface
public void setServerSoTimeout(int soTimeout)
throws TCPIPApplicationException,
java.io.IOException
setServerSoTimeout in interface TCPIPSocketInfoInterfacesoTimeout - The server soTimeout to set
TCPIPApplicationException - on error
java.io.IOException - on i/o error.public java.lang.String getServerWelcomeMessage()
getServerWelcomeMessage in interface TCPIPSocketInfoInterfacepublic void setServerWelcomeMessage(java.lang.String string)
string - public java.lang.String getHost()
getHost in interface TCPIPSocketInfoInterfacepublic boolean isKeepAlive()
isKeepAlive in interface TCPIPSocketInfoInterfacepublic int getPort()
getPort in interface TCPIPSocketInfoInterfacepublic int getBacklog()
getBacklog in interface TCPIPSocketInfoInterfacepublic int getReceiveBufferSize()
getReceiveBufferSize in interface TCPIPSocketInfoInterfacepublic int getSendBufferSize()
getSendBufferSize in interface TCPIPSocketInfoInterfacepublic boolean isSoLinger()
isSoLinger in interface TCPIPSocketInfoInterfacepublic int getSoLingerTimeout()
getSoLingerTimeout in interface TCPIPSocketInfoInterfacepublic int getSoTimeout()
getSoTimeout in interface TCPIPSocketInfoInterfacepublic boolean isTcpNoDelay()
isTcpNoDelay in interface TCPIPSocketInfoInterface
public void setHost(java.lang.String host)
throws TCPIPApplicationException
host - The host to set
TCPIPApplicationException - on error
public void setPort(int port)
throws TCPIPApplicationException
port - The port to set
TCPIPApplicationException - on error
public void setBacklog(int backlog)
throws TCPIPApplicationException
backlog - The backLog to set
TCPIPApplicationException - on error
public void setSocketFactoryImplClassName(java.lang.String socketFactoryImplClassName)
throws TCPIPApplicationException
socketFactoryImplClassName - The socketFactoryImplClassName to set
TCPIPApplicationException - on error
public void setKeepAlive(boolean keepAlive)
throws java.io.IOException
setKeepAlive in interface TCPIPSocketInfoInterfacekeepAlive - The keepAlive to set
IOExeption - on i/oerror
java.io.IOException
public void setReceiveBufferSize(int receiveBufferSize)
throws TCPIPApplicationException,
java.io.IOException
setReceiveBufferSize in interface TCPIPSocketInfoInterfacereceiveBufferSize - 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 TCPIPSocketInfoInterfacesendBufferSize - 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 TCPIPSocketInfoInterfacesoLinger - The soLinger to set
IOExeption - on i/oerror
java.io.IOException
public void setSoLingerTimeout(int soLingerTimeout)
throws java.io.IOException
setSoLingerTimeout in interface TCPIPSocketInfoInterfacesoLingerTimeout - The soLingerTimeout to set
IOExeption - on i/oerror
java.io.IOException
public void setSoTimeout(int soTimeout)
throws TCPIPApplicationException,
java.io.IOException
setSoTimeout in interface TCPIPSocketInfoInterfacesoTimeout - 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 TCPIPSocketInfoInterfacetcpNoDelay - The tcpNoDelay to set
IOExeption - on i/oerror
java.io.IOExceptionpublic java.lang.String getConnectionID()
public void setConnectionID(java.lang.String connectionID)
connectionID - The connectionID to setpublic java.lang.String getSocketFactoryImplClassName()
getSocketFactoryImplClassName in interface TCPIPSocketInfoInterfacepublic 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 TCPIPSocketInfoInterfacepublic void setClientConnectionEstablishmentInfo(TCPIPSocketEstablishmentInfo info)
info - an instance of TCPIPSocketEstablishmentInfopublic TCPIPServerPortBindingInfoInterface getServerPortBindingInfo()
getServerPortBindingInfo in interface TCPIPSocketInfoInterfacepublic 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 | ||||||||