public class ClientHandle
extends java.lang.Object
This class holds a reference to the object the RequestServiceListener uses to send reponses to clients. This object can be either a SocketChannel or a Socket.
Modifier and Type | Field and Description |
---|---|
java.nio.channels.SocketChannel |
_channel |
java.net.Socket |
_socket |
Constructor and Description |
---|
ClientHandle(java.net.Socket s)
Java 1.4 IO should create a response handler with the socket.
|
ClientHandle(java.nio.channels.SocketChannel c)
Java NIO (5 and above) is capable of more advanced response handling
and should use this constructor.
|
Modifier and Type | Method and Description |
---|---|
java.nio.channels.SocketChannel |
getChannel() |
java.lang.String |
getSessionId() |
java.net.Socket |
getSocket() |
public java.nio.channels.SocketChannel _channel
public java.net.Socket _socket
public ClientHandle(java.nio.channels.SocketChannel c)
c
- public ClientHandle(java.net.Socket s)
s
-