org.mgif.connectivity.async
Interface MMMessage

All Superinterfaces:
Attributes, Datagram, Message

public interface MMMessage
extends Message

An interface representing a multimedia message. This is a subinterface of Message which contains methods to get and set the multimedia payload. The addItem method adds a new multipart item to the payload in the data container without any checking whether the value is valid in any way. Methods for manipulating the address portion of the message are inherited from Message.

See Also:
MGIF

Method Summary
 void addItem(MMItem item)
          Adds a new multipart item to the message.
 java.util.Enumeration getItems()
          Returns all multipart items in the message.
 MMMessage getReplyMessage()
          Returns a reply message for sending a message back to the originator of this message.
 
Methods inherited from interface org.mgif.connectivity.async.Message
getDeliveryNotification, getExpiration, getMessageId, getTimestamp, numberOfSegments, send, setDeliveryNotification, setExpiration
 
Methods inherited from interface org.mgif.connectivity.transfer.Datagram
getLocale, getLocales, getProtocol, getScheme, getTerminalId
 
Methods inherited from interface org.mgif.connectivity.transfer.Attributes
getAttribute, getAttributeNames, getAttributes, isAttribute, removeAttribute, setAttribute
 

Method Detail

addItem

public void addItem(MMItem item)
Adds a new multipart item to the message.
Parameters:
item - the multipart item to be added

getItems

public java.util.Enumeration getItems()
Returns all multipart items in the message.
Returns:
all multipart items as an Enumeration

getReplyMessage

public MMMessage getReplyMessage()
Returns a reply message for sending a message back to the originator of this message.
Returns:
reply message or null if the message cannot be replied to


Copyright © 2002 Mobile Games Interoperability Forum. All rights reserved.
This source code is protected by the legal notice posted at http://www.mgif.org/docs/notice.html