| |
|
| java.lang.Object dtw.webmail.model.JwmaDisplayMessage
JwmaDisplayMessage | public class JwmaDisplayMessage implements JwmaMessage(Code) | | Class implementing the JwmaMessage model.
This implementation is specialized to wrap a
javax.mail.Message for displaying it.
author: Dieter Wimberger version: 0.9.7 07/02/2003 |
Constructor Summary | |
protected | JwmaDisplayMessage(Message msg, int number) Constructs a JwmaDisplayMessage instance. |
JwmaDisplayMessage | protected JwmaDisplayMessage(Message msg, int number)(Code) | | Constructs a JwmaDisplayMessage instance.
Parameters: number - the number of the message as int |
createJwmaDisplayMessage | public static JwmaDisplayMessage createJwmaDisplayMessage(JwmaMessageInfoImpl msginfo, Message msg, JwmaPreferences prefs) throws JwmaException(Code) | | Creates a JwmaDisplayMessage instance.
At the moment it just delegates the call to
createJwmaDisplayMessage(Message,boolean), but the
idea is to recycle the passed in JwmaMessageInfoImpl instance
somewhen.
Parameters: msginfo - the JwmaMessageInfoImpl to createthis instance from. Parameters: msg - the Message to create this instance from. Parameters: prefs - the user's preferences. the created JwmaDisplayMessage instance. throws: JwmaException - if it fails to create the new instance. |
createJwmaDisplayMessage | public static JwmaDisplayMessage createJwmaDisplayMessage(Message msg, JwmaPreferences prefs) throws JwmaException(Code) | | Creates a JwmaDisplayMessage instance.
Parameters: msg - the Message to create this instance from. Parameters: prefs - the user's preferences. the newly created instance. throws: JwmaException - if it fails to create the new instance. |
getFullHeader | public String getFullHeader()(Code) | | Returns the full message header as String.
Full message header as String. |
getMessage | public Message getMessage()(Code) | | |
getMessageNumber | public int getMessageNumber()(Code) | | |
getMessagePart | public JwmaMessagePart getMessagePart(int number) throws JwmaException(Code) | | Returns the message part with the given number.
Parameters: number - the number of the requested part as int. the reference to wrapper instance of the requested part. throws: JwmaException - if the part does not exist. |
getReceivedDate | public Date getReceivedDate()(Code) | | |
isMultipart | public boolean isMultipart()(Code) | | |
isReceived | public boolean isReceived()(Code) | | |
isSent | public boolean isSent()(Code) | | |
isSinglepart | public boolean isSinglepart()(Code) | | |
setBody | public void setBody(String body)(Code) | | Sets the body of the message.
Parameters: body - the text/plain content of the message asString. |
setReplyTo | public void setReplyTo(String replyto)(Code) | | Set the Reply-To address(es) of the message.
Parameters: from - the Reply-To address(es) of the messageas String. |
|
|
|