org.apache.mina.transport.socket
Interface SocketSession

All Superinterfaces:
IoSession

public interface SocketSession
extends IoSession


Method Summary
 SocketSessionConfig getConfig()
          Returns the configuration of this session.
 InetSocketAddress getLocalAddress()
          Returns the socket address of local machine which is associated with this session.
 InetSocketAddress getRemoteAddress()
          Returns the socket address of remote peer.
 InetSocketAddress getServiceAddress()
          Returns the socket address of the IoService listens to to manage this session.
 
Methods inherited from interface org.apache.mina.common.IoSession
close, close, closeOnFlush, containsAttribute, getAttachment, getAttribute, getAttribute, getAttributeKeys, getBothIdleCount, getCloseFuture, getCreationTime, getFilterChain, getHandler, getId, getIdleCount, getLastBothIdleTime, getLastIdleTime, getLastIoTime, getLastReaderIdleTime, getLastReadTime, getLastWriterIdleTime, getLastWriteTime, getReadBytes, getReadBytesThroughput, getReaderIdleCount, getReadMessages, getReadMessagesThroughput, getScheduledWriteBytes, getScheduledWriteMessages, getService, getTrafficMask, getTransportMetadata, getWriterIdleCount, getWrittenBytes, getWrittenBytesThroughput, getWrittenMessages, getWrittenMessagesThroughput, isClosing, isConnected, isIdle, read, removeAttribute, removeAttribute, replaceAttribute, resumeRead, resumeWrite, setAttachment, setAttribute, setAttribute, setAttributeIfAbsent, setAttributeIfAbsent, setTrafficMask, suspendRead, suspendWrite, write, write
 

Method Detail

getConfig

SocketSessionConfig getConfig()
Description copied from interface: IoSession
Returns the configuration of this session.

Specified by:
getConfig in interface IoSession

getRemoteAddress

InetSocketAddress getRemoteAddress()
Description copied from interface: IoSession
Returns the socket address of remote peer.

Specified by:
getRemoteAddress in interface IoSession

getLocalAddress

InetSocketAddress getLocalAddress()
Description copied from interface: IoSession
Returns the socket address of local machine which is associated with this session.

Specified by:
getLocalAddress in interface IoSession

getServiceAddress

InetSocketAddress getServiceAddress()
Description copied from interface: IoSession
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


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