|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolSession
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 |
|---|
ProtocolHandler getHandler()
ProtocolHandler which handles this session.
ProtocolFilterChain getFilterChain()
ProtocolEncoder getEncoder()
ProtocolEncoder for this session.
ProtocolDecoder getDecoder()
ProtocolDecoder for this session.
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 | ||||||||