|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StartChannelRequest
Represents a request to start a new channel by the other peer. This request may be cancelled or accepted by selecting a profile from a list of profiles. If you take no action, the request will be cancelled, the channel not created.
| Method Summary | |
|---|---|
void |
cancel(int code,
java.lang.String message)
Cancels the request to start a new channel. |
ProfileInfo |
getProfile(java.lang.String profileUri)
Gets the ProfileInfo for the given profile uri. |
ProfileInfo[] |
getProfiles()
Gets the list of acceptable profiles sent as part of the start channel request. |
boolean |
hasProfile(java.lang.String profileUri)
Determines whether there is a profile element with the given profile uri. |
void |
selectProfile(ProfileInfo profile,
ChannelHandler handler)
Selects one particular profile from the list of profiles. |
| Method Detail |
|---|
ProfileInfo[] getProfiles()
boolean hasProfile(java.lang.String profileUri)
profileUri - the profile uri
ProfileInfo getProfile(java.lang.String profileUri)
profileUri - the profile uri
java.lang.IllegalArgumentException - if the profile info element is missing
void selectProfile(ProfileInfo profile,
ChannelHandler handler)
getProfiles() method. If you pass in a profile
which is not in the list of profiles, this method will
throw an exception.
profile - the selected profile for the channelhandler - the channel handler for the new channel
void cancel(int code,
java.lang.String message)
code - the reply codemessage - the diagnostic message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||