|
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.TCPIPSocket
public class TCPIPSocket
This class represents a java Socket API. It is used to establish the physical tcpip connetion. For more detailed method description, please refer the corresponding parts of java.net.Socket.
| Field Summary | |
|---|---|
static java.lang.String |
version
|
| Constructor Summary | |
|---|---|
TCPIPSocket()
Constructor of TCPIPSocket |
|
| Method Summary | |
|---|---|
void |
close()
Closes the Socket. |
void |
connect(java.net.InetAddress address,
int port)
Creates the Socket object. |
void |
connect(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort)
Creates the Socket object. |
void |
connect(java.lang.String host,
int port)
Creates the Socket object. |
void |
connect(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort)
Creates the Socket object. |
java.net.Socket |
getSocket()
Returns a Socket instance. |
void |
setTCPIPSocketFactory(TCPIPSocketFactory socketFactory)
Sets TCPIPSocketFactory. |
void |
setTCPIPSocketFactoryClassName(java.lang.String socketFactoryClassName)
Sets TCPIPSocketFactoryClassName. |
| 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
| Constructor Detail |
|---|
public TCPIPSocket()
| Method Detail |
|---|
public java.net.Socket getSocket()
public void close()
throws java.io.IOException
java.io.IOException - on error
public void connect(java.net.InetAddress address,
int port)
throws java.io.IOException
address - InetAddress of the hostport - The port number
java.io.IOException - on error
public void connect(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
host - The host nameport - The port number
java.net.UnknownHostException - on error
java.io.IOException - on error
public void connect(java.net.InetAddress address,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
address - InetAddress of the hostport - The port numberlocalAddr - InetAddress of the local sidelocalPort - The port number of the local side
java.io.IOException - on error
public void connect(java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.net.UnknownHostException,
java.io.IOException
host - The host nameport - The port numberlocalAddr - InetAddress of the local sidelocalPort - The port number of the local side
java.net.UnknownHostException - on error
java.io.IOException - on error
public void setTCPIPSocketFactory(TCPIPSocketFactory socketFactory)
throws java.io.IOException
socketFactory - TCPIPSocketFactory instance
java.io.IOException - on error
public void setTCPIPSocketFactoryClassName(java.lang.String socketFactoryClassName)
throws java.io.IOException
socketFactoryClassName - The class name
java.io.IOException - on error
|
Sun Adapter for TCP/IP HL7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||