org.glassfish.cafe.api
Interface TextMessage

All Superinterfaces:
Message

public interface TextMessage
extends Message

Represents the TextMessage in an IMConversation between participants.

Author:
binod
See Also:
IMConversation

Method Summary
 void addRecipient(MessageRecipient recipient)
          Add Recipient to the Message resource-list
 Set<MessageRecipient> getRecipients()
          return MessageRecipients for this message.
 String getText()
          Return the text of the message.
 void sendAnonymous()
          Send the Message as Anonymous User.
 void sendAnonymous(String sender)
          Send Message with the sender as anonymous
 void setText(String s)
          Set the text of the message.
 
Methods inherited from interface org.glassfish.cafe.api.Message
consume, getContent, getContentType, reject, send, send, send
 

Method Detail

setText

void setText(String s)
Set the text of the message.

Parameters:
s - Text of the message to be set.

getText

String getText()
Return the text of the message.

Returns:
The message as a string.

addRecipient

void addRecipient(MessageRecipient recipient)
Add Recipient to the Message resource-list

Parameters:
recipient -

sendAnonymous

void sendAnonymous()
Send the Message as Anonymous User.


sendAnonymous

void sendAnonymous(String sender)
Send Message with the sender as anonymous

Parameters:
sender -

getRecipients

Set<MessageRecipient> getRecipients()
return MessageRecipients for this message.

Returns:


Copyright © 2010. All Rights Reserved.