Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.common
Class Message

java.lang.Object
  |
  +--oracle.panama.messaging.common.MessagePart
        |
        +--oracle.panama.messaging.common.Message
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
MM1Message, MM7Message

public class Message
extends MessagePart

The message can be extended. It implements the Externalizable interface so that it is fast to serialize it. It can be stored in the database persistently as a Java object. No information won't be lost even it is an extended one. This class describes the structure of a message content for delivering. The Message class defines the interface for applications to represent message complex content, which is MIME type based and potentially multipart. The main content of a message is actually described in MessagePart, the Message class encapsulates a few message-wide properties. The Message class can be extended to represent customized message format. Instances of the Messages object potentially can be persisted after externalization depending on how the system routes the message.

Author:
jxiang
See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.panama.messaging.common.MessagePart
CHARSET_KEY, CONTENT_DISPOSITION_KEY, CONTENT_ID_KEY, CONTENT_LOCATION_KEY, CONTENT_TYPE_KEY, FILENAME_KEY

 

Constructor Summary
Message()
           

 

Method Summary
 java.lang.String getSubject()
          Get the subject of the message.
 void readExternal(java.io.ObjectInput oi)
          Read a message instance from a stream.
 void setSubject(java.lang.String subject)
          Set the subject of the message.
 void writeExternal(java.io.ObjectOutput oo)
          Write a message instance to a stream.

 

Methods inherited from class oracle.panama.messaging.common.MessagePart
addHeader, getAllHeaders, getContent, getContentId, getContentLocation, getContentType, getDisposition, getFileName, getHeader, getHeader, getHeaderParameter, getSimpleHeader, isMimeType, removeHeader, setContent, setContentId, setContentLocation, setContentType, setDisposition, setFileName, setHeader

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Message

public Message()
Method Detail

getSubject

public java.lang.String getSubject()
Get the subject of the message.
Returns:
the message subject represented as a String

setSubject

public void setSubject(java.lang.String subject)
Set the subject of the message.
Parameters:
subject - subject of the message.

readExternal

public void readExternal(java.io.ObjectInput oi)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read a message instance from a stream.
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class MessagePart
Parameters:
oi - the stream to read from.
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput oo)
                   throws java.io.IOException
Write a message instance to a stream.
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class MessagePart
Parameters:
oo - the stream to write to.
java.io.IOException

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.