jremote jbase5.2.1

com.jbase.jremote.io.inflow
Class ClientHandle

java.lang.Object
  extended by 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.
 
Method Summary
 java.nio.channels.SocketChannel getChannel()
           
 java.lang.String getSessionId()
           
 java.net.Socket getSocket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_channel

public java.nio.channels.SocketChannel _channel

_socket

public java.net.Socket _socket
Constructor Detail

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 -
Method Detail

getSessionId

public java.lang.String getSessionId()

getChannel

public java.nio.channels.SocketChannel getChannel()

getSocket

public java.net.Socket getSocket()

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.