|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Notification service is used to send and receive messages. The Notification Service is distinct from the conference service, despite the fact that the same Message definition is used in both. The differences include
Method Summary | |
void |
addNotificationServiceListener(NotificationServiceListener listener)
Add an additional NotificationServiceListener to receive the event notifications. |
Message |
createMessage()
create a message. |
Message |
createMessage(java.lang.String destination)
create a message. |
void |
initialize(NotificationServiceListener listener)
intialize the service by providing a NotificationServiceListener. |
void |
removeNotificationServiceListener(NotificationServiceListener listener)
Removes an already added ConfereneServiceListener. |
void |
sendMessage(Message message,
MessageStatusListener listener)
send an alert to a destination. |
Method Detail |
public void sendMessage(Message message, MessageStatusListener listener) throws CollaborationException
message
- alert messagelistener
- callback object used by the provider to convey
message disposition notifications.
CollaborationException
public Message createMessage(java.lang.String destination) throws CollaborationException
destination
- address of the recipient.
more recipient addresses can be added using the Message.addRecipient()
method.
CollaborationException
public Message createMessage() throws CollaborationException
CollaborationException
public void initialize(NotificationServiceListener listener) throws CollaborationException
listener
- NotificationServiceListener
CollaborationException
public void addNotificationServiceListener(NotificationServiceListener listener)
initializing
NotificationService.
listener
- NotificationServiceListener The NotificationServiceListener to be added.public void removeNotificationServiceListener(NotificationServiceListener listener)
listener
- NotificationServiceListener The NotificationServiceListener to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |