com.flat502.rox.processing
Class Context

java.lang.Object
  extended by com.flat502.rox.processing.Context
Direct Known Subclasses:
RpcCallContext, RpcResponseContext

public abstract class Context
extends java.lang.Object

Abstract base class for describing the context of an RPC call or response.


Constructor Summary
protected Context(java.nio.channels.SocketChannel channel, SSLSession sslSession)
           
 
Method Summary
 java.net.SocketAddress getRemoteAddr()
           
 int getRemotePort()
           
 SSLSession getSSLSession()
          Get the SSL session the requested was delivered over.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

protected Context(java.nio.channels.SocketChannel channel,
                  SSLSession sslSession)
Method Detail

getSSLSession

public SSLSession getSSLSession()
Get the SSL session the requested was delivered over.

If no SSL session exists (for example, if HTTP is used) this parameter will be null.

Returns:
An SSLSession instance or null

getRemoteAddr

public java.net.SocketAddress getRemoteAddr()

getRemotePort

public int getRemotePort()