|
1.0.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.server.connection.TcpipServerConnection
public class TcpipServerConnection
The TcpipServerConnection class implements the ConnectionService interface. This class provides for a server connection to a single client.
TcpipConnection,
ConnectionService,
ServerSocket,
Socket| Field Summary | |
|---|---|
protected static char[] |
TOSTRING_NAME
Define the tostring name (char[]) 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, WRITE_BYTES_RESOURCE |
| 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, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, 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.server.connection.service.TcpipServerConnectionService |
|---|
CONNECTION_TYPE, DEFAULT_LINGER, DEFAULT_PORT, DEFAULT_QUEUELENGTH, DEFAULT_TIMEOUT, FACTORY_SERVICE_NAME, LINGER_KEY, PORT_KEY, QUEUELENGTH_KEY, SERVICE_NAME, TIMEOUT_KEY |
| Fields inherited from interface org.eclipse.soda.dk.connection.service.ConnectionService |
|---|
CONNECTION_KEY, DEFAULT_CONNECTION |
| Constructor Summary | |
|---|---|
TcpipServerConnection(ConfigurationService configuration)
Constructs an instance of this class from the specified configuration parameter. |
|
TcpipServerConnection(java.util.Dictionary properties)
Constructs an instance of this class from the specified properties parameter. |
|
TcpipServerConnection(int port)
Constructs an TcpipServerConnection object using the input
parameter(s). |
|
TcpipServerConnection(int port,
int queueLength)
Constructs an TcpipServerConnection object using the input
parameter(s). |
|
TcpipServerConnection(int port,
int queueLength,
int timeout)
Constructs an TcpipServerConnection object using the input
parameter(s). |
|
TcpipServerConnection(int port,
int queueLength,
int timeout,
int linger)
Constructs an TcpipServerConnection object using the input
parameter(s). |
|
| Method Summary | |
|---|---|
void |
close()
Perform the close action method. |
TcpipConnection |
getClient()
Gets the TcpipConnection client property value. |
boolean |
isOpen()
Gets the boolean open property value. |
void |
open()
Open the server connection. |
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, exit, finalize, getConfigurationService, getDefaultResource, getErrorSeverity, getResource, setConfigurationService, setOpen |
| 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 |
|---|
exit, flush, read, read, write, write |
| Field Detail |
|---|
protected static final char[] TOSTRING_NAME
| Constructor Detail |
|---|
public TcpipServerConnection(int port)
TcpipServerConnection object using the input
parameter(s).
int
port - The port (int) parameter.TcpipServerConnection(int,int),
TcpipServerConnection(int,int,int),
TcpipServerConnection(int,int,int,int),
TcpipServerConnection(Dictionary),
TcpipServerConnection(ConfigurationService)
public TcpipServerConnection(int port,
int queueLength)
TcpipServerConnection object using the input
parameter(s).
int
int
port - The port (int) parameter.queueLength - The queue length (int) parameter.TcpipServerConnection(int),
TcpipServerConnection(int,int,int),
TcpipServerConnection(int,int,int,int),
TcpipServerConnection(Dictionary),
TcpipServerConnection(ConfigurationService)
public TcpipServerConnection(int port,
int queueLength,
int timeout)
TcpipServerConnection object using the input
parameter(s).
int
int
int
port - The port (int) parameter.queueLength - The queue length (int) parameter.timeout - The timeout (int) parameter.TcpipServerConnection(int),
TcpipServerConnection(int,int),
TcpipServerConnection(int,int,int,int),
TcpipServerConnection(Dictionary),
TcpipServerConnection(ConfigurationService)
public TcpipServerConnection(int port,
int queueLength,
int timeout,
int linger)
TcpipServerConnection object using the input
parameter(s).
value in milliseconds
linger value (value of zero means no linger).
The port (int) parameter.
The queue length (int) parameter.
port - The port (int) parameter.queueLength - The queue length (int) parameter.timeout - The timeout (int) parameter.linger - The linger (int) parameter.TcpipServerConnection(int),
TcpipServerConnection(int,int),
TcpipServerConnection(int,int,int),
TcpipServerConnection(Dictionary),
TcpipServerConnection(ConfigurationService)public TcpipServerConnection(java.util.Dictionary properties)
properties - The properties (Dictionary) parameter.TcpipServerConnection(int),
TcpipServerConnection(int,int),
TcpipServerConnection(int,int,int),
TcpipServerConnection(int,int,int,int),
TcpipServerConnection(ConfigurationService)public TcpipServerConnection(ConfigurationService configuration)
configuration - The configuration (ConfigurationService) parameter.TcpipServerConnection(int),
TcpipServerConnection(int,int),
TcpipServerConnection(int,int,int),
TcpipServerConnection(int,int,int,int),
TcpipServerConnection(Dictionary)| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface ConnectionServiceclose in class StreamConnectionjava.io.IOExceptionConnectionService.close()public TcpipConnection getClient()
TcpipConnection client property value.
TcpipConnection)
value.public boolean isOpen()
boolean open property value.
isOpen in interface ConnectionServiceisOpen in class Connectionboolean) value.ConnectionService.isOpen()
public void open()
throws java.io.IOException
open in interface ConnectionServiceopen in class Connectionjava.io.IOExceptionConnectionService.open()public void toStringInfo(java.lang.StringBuffer buffer)
toStringInfo in class EscObjectbuffer - The buffer (StringBuffer) parameter.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||