|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Session
which represents high-level protocol connection between two
endpoints regardless of underlying transport types.
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(java.lang.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 |
public ProtocolHandler getHandler()
ProtocolHandler
which handles this session.
public ProtocolFilterChain getFilterChain()
public ProtocolEncoder getEncoder()
ProtocolEncoder
for this session.
public ProtocolDecoder getDecoder()
ProtocolDecoder
for this session.
public void write(java.lang.Object message)
message
to remote peer. This operation
is asynchronous; ProtocolHandler.messageSent(ProtocolSession, Object)
will be invoked when the message is actually sent to remote peer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |