org.csapi.jr.se.mmm
Class MessageDescription

java.lang.Object
  extended byorg.csapi.jr.se.mmm.MessageDescription
All Implemented Interfaces:
java.io.Serializable

public final class MessageDescription
extends java.lang.Object
implements java.io.Serializable

Specifies the properties of a message.

See Also:
Serialized Form

Constructor Summary
MessageDescription()
          Creates a new MessageDescription instance.
MessageDescription(java.lang.String _messageID, Address _from, Address[] _to, java.lang.String _subject, java.lang.String _receivedDate, int _size)
          Creates a new MessageDescription instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 Address getFrom()
          This method returns a from.
 java.lang.String getMessageID()
          This method returns a messageID.
 java.lang.String getReceivedDate()
          This method returns a receivedDate.
 int getSize()
          This method returns a size.
 java.lang.String getSubject()
          This method returns a subject.
 Address[] getTo()
          This method returns a to.
 int hashCode()
          Returns a hashcode value for the object.
 void setFrom(Address from)
          This method sets a from.
 void setMessageID(java.lang.String messageID)
          This method sets a messageID.
 void setReceivedDate(java.lang.String receivedDate)
          This method sets a receivedDate.
 void setSize(int size)
          This method sets a size.
 void setSubject(java.lang.String subject)
          This method sets a subject.
 void setTo(Address[] to)
          This method sets a to.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDescription

public MessageDescription()
Creates a new MessageDescription instance.


MessageDescription

public MessageDescription(java.lang.String _messageID,
                          Address _from,
                          Address[] _to,
                          java.lang.String _subject,
                          java.lang.String _receivedDate,
                          int _size)
Creates a new MessageDescription instance.

Parameters:
_messageID - This is the messageID as it is used on the API to identify a message. This should not be confused with the RFC 822 "Message-ID" field body. The latter can be obtained with getMessageHeadersReq().The messageID used on the API is persistent over sessions and at least unique within the context of a mailbox.
_from - The address of the sender of the message
_to - A set of addresses representing the primary recipients of the message.
_subject - Specifies the subject of the message.
_receivedDate - Specifies the date/time that the message was received by the messaging system.
_size - Specifies the size of the message in bytes.
Method Detail

getMessageID

public java.lang.String getMessageID()
This method returns a messageID.

Returns:
a String value

getFrom

public Address getFrom()
This method returns a from.

Returns:
a org.csapi.jr.se.Address value

getTo

public Address[] getTo()
This method returns a to.

Returns:
a org.csapi.jr.se.Address[] value

getSubject

public java.lang.String getSubject()
This method returns a subject.

Returns:
a String value

getReceivedDate

public java.lang.String getReceivedDate()
This method returns a receivedDate.

Returns:
a String value

getSize

public int getSize()
This method returns a size.

Returns:
a int value

setMessageID

public void setMessageID(java.lang.String messageID)
This method sets a messageID.


setFrom

public void setFrom(Address from)
This method sets a from.


setTo

public void setTo(Address[] to)
This method sets a to.


setSubject

public void setSubject(java.lang.String subject)
This method sets a subject.


setReceivedDate

public void setReceivedDate(java.lang.String receivedDate)
This method sets a receivedDate.


setSize

public void setSize(int size)
This method sets a size.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.


hashCode

public int hashCode()
Returns a hashcode value for the object.