|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
Represents a BEEP session with another peer. It allows to close the
session or start one or several channels. The Session interface
represents the outgoing view of a BEEP peer. The corresponding
incoming interface is the SessionHandler
.
Method Summary | |
---|---|
void |
close()
Closes the session. |
java.lang.String[] |
getProfiles()
Gets the list of profiles supported by the remote peer. |
void |
startChannel(ProfileInfo[] profiles,
ChannelHandlerFactory factory)
Tries to start a new channel using one of the profiles passed in. |
void |
startChannel(ProfileInfo profile,
ChannelHandler handler)
Tries to start a new channel using the profile passed in. |
void |
startChannel(java.lang.String profileUri,
ChannelHandler handler)
Tries to start a new channel using the profile identified by the given uri. |
Method Detail |
---|
java.lang.String[] getProfiles()
void startChannel(java.lang.String profileUri, ChannelHandler handler)
ChannelHandler.channelOpened(Channel)
method returns.
profileUri
- the uri of the profile to be used on the channelhandler
- the channel handler for the new channelvoid startChannel(ProfileInfo profile, ChannelHandler handler)
startChannel(String, ChannelHandler)
for the details.
profile
- the profilehandler
- the channel handler for the new channelvoid startChannel(ProfileInfo[] profiles, ChannelHandlerFactory factory)
startChannel(String, ChannelHandler)
for the details.
profiles
- the profiles from which the other peer can choosefactory
- the factory that creates new ChannelHandlers for the new channelvoid close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |