|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.connection.Connection
org.eclipse.soda.dk.connection.StreamConnection
org.eclipse.soda.dk.tcpip.connection.TcpipConnection
public class TcpipConnection
The TcpipConnection class implements the ConnectionService interface.
ConnectionService,
InetAddress,
Socket,
String| Field Summary | |
|---|---|
static java.lang.String[] |
TO_STRING_CONFIGURATION_KEYS
Define the to string configuration keys (String[]) constant. |
| Fields inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
CLIENT_WAIT_RESOURCE, CLOSE_RESOURCE, CLOSED_RESOURCE, configurationService, OPEN_RESOURCE, OPENFAILED_RESOURCE, READ_BYTES_RESOURCE, readByteCount, WRITE_BYTES_RESOURCE, writeByteCount |
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, INTEGER_TABLE_SIZE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| Fields inherited from interface org.eclipse.soda.dk.tcpip.connection.service.TcpipConnectionService |
|---|
CONNECTION_TYPE, DEFAULT_HOST, DEFAULT_LINGER, DEFAULT_LOCALPORT, DEFAULT_READSIZE, DEFAULT_READTIMEOUT, DEFAULT_REMOTEPORT, DEFAULT_WRITESIZE, FACTORY_SERVICE_NAME, HOST_KEY, LINGER_KEY, LOCALPORT_KEY, READSIZE_KEY, READTIMEOUT_KEY, REMOTEPORT_KEY, SERVICE_NAME, WRITESIZE_KEY |
| Fields inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
CONNECTION_KEY, DEFAULT_CONNECTION |
| Constructor Summary | |
|---|---|
TcpipConnection(ConfigurationService configuration)
Constructs an instance of this class from the specified configuration parameter. |
|
TcpipConnection(java.util.Dictionary properties)
|
|
TcpipConnection(java.net.Socket port)
Constructs an TcpipConnection object using the input
parameter(s). |
|
TcpipConnection(java.lang.String targetHost,
int targetPort)
Constructs an TcpipConnection object using the input
parameter(s). |
|
TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort)
Constructs an TcpipConnection object using the input
parameter(s). |
|
TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort,
int timeout)
Insert the method's description here. |
|
TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort,
int timeout,
int sendBufferSize,
int receiveBufferSize)
|
|
TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort,
int timeout,
int sendBufferSize,
int receiveBufferSize,
int linger)
|
|
| Method Summary | |
|---|---|
void |
close()
Perform the close action method. |
void |
exit()
Exit. |
java.net.Socket |
getPort()
Gets the port (Socket) value. |
boolean |
isOpen()
Gets the open (boolean) value. |
void |
open()
Perform the open action method. |
void |
setPort(java.net.Socket port)
|
void |
toStringInfo(java.lang.StringBuffer buffer)
To string info with the specified buffer parameter. |
| Methods inherited from class org.eclipse.soda.dk.connection.StreamConnection |
|---|
flush, getInputStream, getOutputStream, read, read, setInputStream, setOutputStream, write, write |
| Methods inherited from class org.eclipse.soda.dk.connection.Connection |
|---|
attemptRecoveryFromError, finalize, getConfigurationService, getDefaultResource, getErrorSeverity, getLogDetails4, getLogDetails5, getReadByteCount, getResource, getWriteByteCount, setConfigurationService, setOpen, setReadByteCount, setWriteByteCount, updateReadByteCount, updateWriteByteCount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
flush, read, read, write, write |
| Field Detail |
|---|
public static final java.lang.String[] TO_STRING_CONFIGURATION_KEYS
| Constructor Detail |
|---|
public TcpipConnection(java.lang.String targetHost,
int targetPort)
TcpipConnection object using the input
parameter(s).
java.lang.String
int
targetHost - The target host (String) parameter.targetPort - The target port (int) parameter.TcpipConnection(String,int,int),
TcpipConnection(String,int,int,int),
TcpipConnection(String,int,int,int,int,int),
TcpipConnection(String,int,int,int,int,int,int),
TcpipConnection(Socket),
TcpipConnection(Dictionary),
TcpipConnection(ConfigurationService)
public TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort)
TcpipConnection object using the input
parameter(s).
java.lang.String
int
int
targetHost - The target host (String) parameter.targetPort - The target port (int) parameter.localPort - The local port (int) parameter.TcpipConnection(String,int),
TcpipConnection(String,int,int,int),
TcpipConnection(String,int,int,int,int,int),
TcpipConnection(String,int,int,int,int,int,int),
TcpipConnection(Socket),
TcpipConnection(Dictionary),
TcpipConnection(ConfigurationService)
public TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort,
int timeout)
targetHost - The target host (String) parameter.targetPort - The target port (int) parameter.localPort - The local port (int) parameter.timeout - The timeout (int) parameter.TcpipConnection(String,int),
TcpipConnection(String,int,int),
TcpipConnection(String,int,int,int,int,int),
TcpipConnection(String,int,int,int,int,int,int),
TcpipConnection(Socket),
TcpipConnection(Dictionary),
TcpipConnection(ConfigurationService)
public TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort,
int timeout,
int sendBufferSize,
int receiveBufferSize)
targetHost - The target host (String) parameter.targetPort - The target port (int) parameter.localPort - The local port (int) parameter.timeout - The timeout (int) parameter.sendBufferSize - The send buffer size (int) parameter.receiveBufferSize - The receive buffer size (int) parameter.TcpipConnection(String,int),
TcpipConnection(String,int,int),
TcpipConnection(String,int,int,int),
TcpipConnection(String,int,int,int,int,int,int),
TcpipConnection(Socket),
TcpipConnection(Dictionary),
TcpipConnection(ConfigurationService)
public TcpipConnection(java.lang.String targetHost,
int targetPort,
int localPort,
int timeout,
int sendBufferSize,
int receiveBufferSize,
int linger)
targetHost - The target host (String) parameter.targetPort - The target port (int) parameter.localPort - The local port (int) parameter.timeout - The timeout (int) parameter.sendBufferSize - The send buffer size (int) parameter.receiveBufferSize - The receive buffer size (int) parameter.linger - The linger (int) parameter.TcpipConnection(String,int),
TcpipConnection(String,int,int),
TcpipConnection(String,int,int,int),
TcpipConnection(String,int,int,int,int,int),
TcpipConnection(Socket),
TcpipConnection(Dictionary),
TcpipConnection(ConfigurationService)public TcpipConnection(java.net.Socket port)
TcpipConnection object using the input
parameter(s).
java.net.Socket
port - The port (Socket) parameter.TcpipConnection(String,int),
TcpipConnection(String,int,int),
TcpipConnection(String,int,int,int),
TcpipConnection(String,int,int,int,int,int),
TcpipConnection(String,int,int,int,int,int,int),
TcpipConnection(Dictionary),
TcpipConnection(ConfigurationService)public TcpipConnection(java.util.Dictionary properties)
properties - The properties (Dictionary) parameter.TcpipConnection(String,int),
TcpipConnection(String,int,int),
TcpipConnection(String,int,int,int),
TcpipConnection(String,int,int,int,int,int),
TcpipConnection(String,int,int,int,int,int,int),
TcpipConnection(Socket),
TcpipConnection(ConfigurationService)public TcpipConnection(ConfigurationService configuration)
ConfigurationService)
parameter.
configuration - The configuration (ConfigurationService) parameter.TcpipConnection(String,int),
TcpipConnection(String,int,int),
TcpipConnection(String,int,int,int),
TcpipConnection(String,int,int,int,int,int),
TcpipConnection(String,int,int,int,int,int,int),
TcpipConnection(Socket),
TcpipConnection(Dictionary)| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface ConnectionServiceclose in class StreamConnectionjava.io.IOException - IOException.ConnectionService.close()
public void exit()
throws java.io.IOException
exit in interface ConnectionServiceexit in class Connectionjava.io.IOException - IOException.public java.net.Socket getPort()
Socket) value.setPort(Socket)public boolean isOpen()
isOpen in interface ConnectionServiceisOpen in class Connectionboolean) value.ConnectionService.isOpen(),
Connection.setOpen(boolean)
public void open()
throws java.io.IOException
open in interface ConnectionServiceopen in class Connectionjava.io.IOException - IOException.ConnectionService.open()public void setPort(java.net.Socket port)
port - The port (Socket) parameter.getPort()public void toStringInfo(java.lang.StringBuffer buffer)
Connection
toStringInfo in class Connectionbuffer - The buffer (StringBuffer) parameter.
|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||