org.apache.mina.protocol
Interface ProtocolSession

All Superinterfaces:
Session
All Known Implementing Classes:
IoProtocolSession

public interface ProtocolSession
extends Session

A Session which represents high-level protocol connection between two endpoints regardless of underlying transport types.

Version:
$Rev: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
Author:
The Apache Directory Project (dev@directory.apache.org)
See Also:
Session

Method Summary
 ProtocolDecoder getDecoder()
          Returns the ProtocolDecoder for this session.
 ProtocolEncoder getEncoder()
          Returns the ProtocolEncoder for this session.
 ProtocolFilterChain getFilterChain()
          Returns the filter chain that only affects this session.
 ProtocolHandler getHandler()
          Returns the ProtocolHandler which handles this session.
 void write(Object message)
          Writes the specified message to remote peer.
 
Methods inherited from interface org.apache.mina.common.Session
close, close, getAttachment, getAttribute, getAttributeKeys, getConfig, getCreationTime, getIdleCount, getLastIdleTime, getLastIoTime, getLastReadTime, getLastWriteTime, getLocalAddress, getReadBytes, getRemoteAddress, getScheduledWriteRequests, getTransportType, getWrittenBytes, getWrittenWriteRequests, isConnected, isIdle, removeAttribute, setAttachment, setAttribute
 

Method Detail

getHandler

ProtocolHandler getHandler()
Returns the ProtocolHandler which handles this session.


getFilterChain

ProtocolFilterChain getFilterChain()
Returns the filter chain that only affects this session.


getEncoder

ProtocolEncoder getEncoder()
Returns the ProtocolEncoder for this session.


getDecoder

ProtocolDecoder getDecoder()
Returns the ProtocolDecoder for this session.


write

void write(Object message)
Writes the specified message to remote peer. This operation is asynchronous; ProtocolHandler.messageSent(ProtocolSession, Object) will be invoked when the message is actually sent to remote peer.



Copyright © 2004-2005 . All Rights Reserved.