com.sun.im.service
Interface ReadOnlyMessage

All Superinterfaces:
ReadOnlyMessagePart

public interface ReadOnlyMessage
extends ReadOnlyMessagePart


Method Summary
 java.lang.String getHeader(java.lang.String name)
          get the value of a header
 java.lang.String getMessageId()
          returns the message identifier.
 java.lang.String getOriginator()
          returns the originator address
 ReadOnlyMessagePart[] getReadOnlyParts()
          get the nested parts of a multi-part message or message part
 java.lang.String[] getRecipients()
          get the recipients of the message.
 
Methods inherited from interface com.sun.im.service.ReadOnlyMessagePart
getBytes, getContent, getContent, getContentEncoding, getContentID, getContentName, getContentType, getInputStream, getSize
 

Method Detail

getOriginator

public java.lang.String getOriginator()
returns the originator address

Returns:
originator address

getRecipients

public java.lang.String[] getRecipients()
                                 throws CollaborationException
get the recipients of the message.

Returns:
array of recipient addresses
Throws:
CollaborationException

getMessageId

public java.lang.String getMessageId()
returns the message identifier. The message identifier is generated by the provider.

Returns:
message identifier

getHeader

public java.lang.String getHeader(java.lang.String name)
get the value of a header


getReadOnlyParts

public ReadOnlyMessagePart[] getReadOnlyParts()
get the nested parts of a multi-part message or message part