com.jbase.jremote.io.inflow
Class ClientHandle
java.lang.Object
com.jbase.jremote.io.inflow.ClientHandle
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.
- Author:
- aphethean
Field Summary |
java.nio.channels.SocketChannel |
_channel
|
java.net.Socket |
_socket
|
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_channel
public java.nio.channels.SocketChannel _channel
_socket
public java.net.Socket _socket
ClientHandle
public ClientHandle(java.nio.channels.SocketChannel c)
- Java NIO (5 and above) is capable of more advanced response handling
and should use this constructor.
- Parameters:
c
-
ClientHandle
public ClientHandle(java.net.Socket s)
- Java 1.4 IO should create a response handler with the socket.
- Parameters:
s
-
getSessionId
public java.lang.String getSessionId()
getChannel
public java.nio.channels.SocketChannel getChannel()
getSocket
public java.net.Socket getSocket()
Copyright © 2010 TEMENOS. All Rights Reserved.