org.glassfish.cafe.api
Interface Message

All Known Subinterfaces:
DtmfSignal, MessageIndication, PresenceMessage, ProtocolMessage, TextMessage, UserProcedureMessage, WatcherInfoMessage

public interface Message

Message represents the actual information passed between parties involved in the communication. In the simplest form, it could be the SDP information used to setup the call or a text message.

Author:
binod
See Also:
TextMessage

Method Summary
 void consume()
          Stop processing the message further and consume the message.
 Object getContent()
          return the actual content of the message.
 String getContentType()
          Return the content type of the message.
 void reject(Reason reason)
          Reject the message sent by a party in the communication.
 void send()
          send the message.
 void send(Participant p)
          send the message on behalf of a participant
 void send(String user)
          send the message on behalf of a user
 

Method Detail

send

void send()
send the message.


send

void send(String user)
send the message on behalf of a user


send

void send(Participant p)
send the message on behalf of a participant


consume

void consume()
Stop processing the message further and consume the message.


reject

void reject(Reason reason)
Reject the message sent by a party in the communication.

Parameters:
reason - Reason for rejecting the message.
See Also:
Reason

getContent

Object getContent()
return the actual content of the message.

Returns:
Raw content object of the message.

getContentType

String getContentType()
Return the content type of the message. Example: "text/plain"

Returns:
The Content-Type of the message.


Copyright © 2010. All Rights Reserved.