|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.beep4j.ext.SessionHandlerAdapter
public abstract class SessionHandlerAdapter
Base class for SessionHandler implementations. Some of the methods of the SessionHandler interface are implemented by this abstract class. Feel free to override the methods as necessary.
Constructor Summary | |
---|---|
SessionHandlerAdapter()
|
Method Summary | |
---|---|
void |
channelStartRequested(StartChannelRequest request)
Notifies the handler that the remote peer wants to open a channel. |
void |
connectionEstablished(StartSessionRequest s)
Does not register a profile. |
protected Session |
getSession()
Get the associated Session object. |
void |
sessionClosed()
Notifies the handler that the Session has been closed. |
void |
sessionOpened(Session session)
Notifies the handler that the Session was successfully established. |
void |
sessionStartDeclined(int code,
java.lang.String message)
Notifies the handler that the session start was refused by the remote peer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionHandlerAdapter()
Method Detail |
---|
protected Session getSession()
sessionOpened(Session)
has not been invoked
and will return after sessionClosed()
has been invoked.
public void connectionEstablished(StartSessionRequest s)
connectionEstablished
in interface SessionHandler
s
- the session startup objectpublic void sessionStartDeclined(int code, java.lang.String message)
sessionStartDeclined
in interface SessionHandler
code
- the reason codemessage
- the human readable messagepublic void sessionOpened(Session session)
getSession()
method.
sessionOpened
in interface SessionHandler
session
- the Session objectpublic void channelStartRequested(StartChannelRequest request)
channelStartRequested
in interface SessionHandler
request
- all the information about the request to start a channelpublic void sessionClosed()
sessionClosed
in interface SessionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |