org.apache.mina.transport.socket.apr
Class AprSession

java.lang.Object
  extended by org.apache.mina.core.session.AbstractIoSession
      extended by org.apache.mina.transport.socket.apr.AprSession
All Implemented Interfaces:
IoSession

public abstract class AprSession
extends AbstractIoSession

An abstract IoSession serving of base for APR based sessions.

Version:
$Rev: 671930 $, $Date: 2008-06-26 17:58:30 +0200 (jeu, 26 jun 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Method Summary
 IoFilterChain getFilterChain()
          
 IoHandler getHandler()
          
 InetSocketAddress getLocalAddress()
          Returns the socket address of local machine which is associated with this session.
 IoProcessor<AprSession> getProcessor()
          TODO Add method documentation
 InetSocketAddress getRemoteAddress()
          Returns the socket address of remote peer.
 IoService getService()
          
 InetSocketAddress getServiceAddress()
          Returns the socket address of the IoService listens to to manage this session.
 
Methods inherited from class org.apache.mina.core.session.AbstractIoSession
close, close, closeOnFlush, containsAttribute, decreaseReadBufferSize, decreaseScheduledBytesAndMessages, equals, getAttachment, getAttribute, getAttribute, getAttributeKeys, getAttributeMap, getBothIdleCount, getCloseFuture, getCreationTime, getCurrentWriteMessage, getCurrentWriteRequest, getId, getIdleCount, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getTrafficMask, getWriteRequestQueue, getWriterIdleCount, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, hashCode, increaseIdleCount, increaseReadBufferSize, increaseReadBytes, increaseReadMessages, increaseScheduledWriteBytes, increaseScheduledWriteMessages, increaseWrittenBytes, increaseWrittenMessages, isBothIdle, isClosing, isConnected, isIdle, isReaderIdle, isScheduledForFlush, isWriterIdle, offerClosedReadFuture, offerFailedReadFuture, offerReadFuture, read, removeAttribute, removeAttribute, replaceAttribute, resumeRead, resumeWrite, setAttachment, setAttribute, setAttribute, setAttributeIfAbsent, setAttributeIfAbsent, setAttributeMap, setCurrentWriteRequest, setScheduledForFlush, setScheduledWriteBytes, setScheduledWriteMessages, setTrafficMask, setTrafficMaskNow, setWriteRequestQueue, suspendRead, suspendWrite, toString, updateThroughput, write, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.mina.core.session.IoSession
getConfig, getTransportMetadata
 

Method Detail

getProcessor

public IoProcessor<AprSession> getProcessor()
TODO Add method documentation

Specified by:
getProcessor in class AbstractIoSession

getLocalAddress

public InetSocketAddress getLocalAddress()
Returns the socket address of local machine which is associated with this session.


getRemoteAddress

public InetSocketAddress getRemoteAddress()
Returns the socket address of remote peer.


getFilterChain

public IoFilterChain getFilterChain()

Returns:
the filter chain that only affects this session.

getHandler

public IoHandler getHandler()

Returns:
the IoHandler which handles this session.

getService

public IoService getService()

Returns:
the IoService which provides I/O service to this session.

getServiceAddress

public InetSocketAddress getServiceAddress()
Returns the socket address of the IoService listens to to manage this session. If this session is managed by IoAcceptor, it returns the SocketAddress which is specified as a parameter of IoAcceptor.bind(). If this session is managed by IoConnector, this method returns the same address with that of IoSession.getRemoteAddress().

Specified by:
getServiceAddress in interface IoSession
Overrides:
getServiceAddress in class AbstractIoSession


Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.