|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Channel
Represents the outgoing view of a BEEP channel. It allows to send messages to the remote peer and to close the channel.
| Method Summary | |
|---|---|
void |
close(CloseChannelCallback callback)
Closes the channel. |
MessageBuilder |
createMessageBuilder()
Creates a new MessageBuilder object that can be used to create one Message. |
java.lang.String |
getProfile()
Gets the URI of the profile that is used by this channel. |
Session |
getSession()
Gets the session on which this channel runs. |
void |
sendMessage(Message message,
ReplyHandler listener)
Sends a message on this channel to the remote peer. |
| Method Detail |
|---|
java.lang.String getProfile()
Session getSession()
MessageBuilder createMessageBuilder()
void sendMessage(Message message,
ReplyHandler listener)
message - the message to be sentlistener - the listener receiving the replyvoid close(CloseChannelCallback callback)
callback - the callback that gets notified about the outcome of
the close request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||