Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.oracle.sft.api
Interface Message

All Known Subinterfaces:
CapabilityMessage, CommonPresenceInstantMessage, DtmfSignal, EndUserConfirmationMessage, MessageIndication, ProtocolMessage, ResourceListsMessage, TextMessage

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.

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.

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.