|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChannelManagementProfile
Interface of the channel management profile, which is used on channel 0 of every BEEP session. Channel 0 is a bit special because it exists in every BEEP session as soon as the session is established.
| Method Summary | |
|---|---|
void |
closeChannel(int channelNumber,
CloseChannelCallback callback)
Send a close channel message. |
void |
closeSession(CloseCallback callback)
Closes the session. |
boolean |
connectionEstablished(java.net.SocketAddress address,
SessionHandler handler,
Reply response)
Invoked by the session when the connection has been established. |
ChannelHandler |
createChannelHandler(SessionManager manager)
Invoked by the framework to initialize the channel and to get the ChannelHandler for the profile. |
BEEPError |
receivedError(Message message)
Invoked by the session when an error has been received during the session startup. |
Greeting |
receivedGreeting(Message message)
Invoked by the session when a greeting has been received during the session startup. |
void |
startChannel(int channelNumber,
ProfileInfo[] infos,
StartChannelCallback callback)
Sends a start channel message to the other peer. |
| Method Detail |
|---|
ChannelHandler createChannelHandler(SessionManager manager)
manager - the SessionManager to be used by the profile
boolean connectionEstablished(java.net.SocketAddress address,
SessionHandler handler,
Reply response)
address - address of remote peerhandler - the SessionHandler of the sessionresponse - the ResponseHandler to be used to generate a response
Greeting receivedGreeting(Message message)
message - the message to be parsed
BEEPError receivedError(Message message)
message - the message to be parsed
void startChannel(int channelNumber,
ProfileInfo[] infos,
StartChannelCallback callback)
channelNumber - the channel number of the new peerinfos - the ProfileInfos to be passed inside the profile element in
the requestcallback - the callback that is invoked when the response is received
void closeChannel(int channelNumber,
CloseChannelCallback callback)
channelNumber - the channel to be closedcallback - the callback that is invoked when the response is receivedvoid closeSession(CloseCallback callback)
callback - the callback used to notify about the response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||