org.deegree_impl.tools.mail
Interface MailMessage

All Known Implementing Classes:
EMailMessage

public interface MailMessage

Interface declaration of an email message.

Version:
$Revision: 1.2 $
Author:
Torsten Friebe

Field Summary
static short PART_INLINE
           
static short PART_REF
           
static java.lang.String PLAIN_TEXT
           
static java.lang.String TEXT_HTML
           
 
Method Summary
 java.lang.String getMessageBody()
          Returns the message body as a String.
 java.lang.String getMimeType()
           
 java.lang.String getReceiver()
          Returns the list of receiver as a string.
 java.lang.String getSender()
          Returns the sender.
 java.lang.String getSubject()
          Returns the subject string of a message.
 void setMessageBody(java.lang.String message)
          Sets the message body as a String.
 void setMimeType(java.lang.String mimeType)
           
 void setReceiver(java.lang.String to)
          Sets the list of receiver.
 void setSender(java.lang.String from)
          Sets the sender.
 void setSubject(java.lang.String title)
          Sets the title of the message.
 

Field Detail

PLAIN_TEXT

public static final java.lang.String PLAIN_TEXT
See Also:
Constant Field Values

TEXT_HTML

public static final java.lang.String TEXT_HTML
See Also:
Constant Field Values

PART_INLINE

public static final short PART_INLINE
See Also:
Constant Field Values

PART_REF

public static final short PART_REF
See Also:
Constant Field Values
Method Detail

getSubject

public java.lang.String getSubject()
Returns the subject string of a message.

Returns:
the subject string

getSender

public java.lang.String getSender()
Returns the sender.

Returns:
the mail address of the sender

getMessageBody

public java.lang.String getMessageBody()
Returns the message body as a String.

Returns:
the message body

getReceiver

public java.lang.String getReceiver()
Returns the list of receiver as a string. Using the default delimiter set.

Returns:
the list of receiver.

setReceiver

public void setReceiver(java.lang.String to)
Sets the list of receiver.

Parameters:
to -

setMessageBody

public void setMessageBody(java.lang.String message)
Sets the message body as a String.

Parameters:
message -

setSender

public void setSender(java.lang.String from)
Sets the sender.

Parameters:
from -

setSubject

public void setSubject(java.lang.String title)
Sets the title of the message.

Parameters:
title -

setMimeType

public void setMimeType(java.lang.String mimeType)
                 throws UnknownMimeTypeException
Parameters:
mimeType -
Throws:
UnknownMimeTypeException

getMimeType

public java.lang.String getMimeType()
Returns: