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 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
 SocketChannel _channel
           
 Socket _socket
           
 
Constructor Summary
ClientHandle(Socket s)
          Java 1.4 IO should create a response handler with the socket.
ClientHandle(SocketChannel c)
          Java NIO (5 and above) is capable of more advanced response handling and should use this constructor.
 
Method Summary
 SocketChannel getChannel()
           
 String getSessionId()
           
 Socket getSocket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_channel

public SocketChannel _channel

_socket

public Socket _socket
Constructor Detail

ClientHandle

public ClientHandle(SocketChannel c)
Java NIO (5 and above) is capable of more advanced response handling and should use this constructor.

Parameters:
c -

ClientHandle

public ClientHandle(Socket s)
Java 1.4 IO should create a response handler with the socket.

Parameters:
s -
Method Detail

getSessionId

public String getSessionId()

getChannel

public SocketChannel getChannel()

getSocket

public Socket getSocket()

jremote jbase5.2.1

Copyright © 2016 TEMENOS. All Rights Reserved.