|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cindy.session.AbstractSession
net.sf.cindy.session.nio.AbstractChannelSession
net.sf.cindy.session.nio.PipeSession
public class PipeSession
Pipe session.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.cindy.session.nio.AbstractChannelSession |
|---|
AbstractChannelSession.ChannelReactorHandler |
| Constructor Summary | |
|---|---|
PipeSession()
|
|
| Method Summary | |
|---|---|
protected void |
doClose()
|
protected void |
doStart()
|
java.net.SocketAddress |
getLocalAddress()
Get the local address which the session bind with. |
java.nio.channels.Pipe |
getPipe()
Get pipe associted with the session. |
protected ReactorHandler |
getReactorHandler()
Get reactor handler. |
java.net.SocketAddress |
getRemoteAddress()
Get the remote address which the session connmected to. |
SessionType |
getSessionType()
Get session type. |
void |
setPipe(java.nio.channels.Pipe pipe)
Set the pipe which the session will used. |
| Methods inherited from class net.sf.cindy.session.nio.AbstractChannelSession |
|---|
close, getReactor, isStarted, send, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PipeSession()
| Method Detail |
|---|
public void setPipe(java.nio.channels.Pipe pipe)
pipe - pipe
java.lang.IllegalStateExceptionpublic java.nio.channels.Pipe getPipe()
public SessionType getSessionType()
Session
public java.net.SocketAddress getLocalAddress()
Session
getLocalAddress in interface SessiongetLocalAddress in class AbstractSessionpublic java.net.SocketAddress getRemoteAddress()
Session
getRemoteAddress in interface SessiongetRemoteAddress in class AbstractSessionprotected ReactorHandler getReactorHandler()
AbstractChannelSession
getReactorHandler in class AbstractChannelSession
protected void doStart()
throws java.io.IOException
doStart in class AbstractChannelSessionjava.io.IOExceptionprotected void doClose()
doClose in class AbstractChannelSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||