| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MailMessage
Interface of a email message.
| Field Summary | |
|---|---|
static short | 
PART_INLINE
HTML mulitpart message with inline elements  | 
static short | 
PART_REF
Mulitpart message with references  | 
static String | 
PLAIN_TEXT
MIME type text/plain | 
static String | 
TEXT_HTML
MIME type text/html | 
static String | 
TEXT_XML
MIME type text/xml | 
| Method Summary | |
|---|---|
 String | 
getHeader()
Return mail header including sender, receiver and subject.  | 
 String | 
getMessageBody()
Returns the message body  | 
 String | 
getMimeType()
Returns the MIME type of the message body.  | 
 String | 
getReceiver()
Returns the receiver mail address  | 
 String | 
getSender()
Returns the sender  | 
 String | 
getSubject()
Returns the subject.  | 
 boolean | 
isValid()
Validates the message.  | 
 void | 
setMessageBody(String message)
Sets the message body  | 
 void | 
setMimeType(String mimeType)
Sets the MIME type of the message  | 
 void | 
setReceiver(String to)
Sets the receiver mail address  | 
 void | 
setSender(String from)
Sets the sender mail address.  | 
 void | 
setSubject(String title)
Sets the subject.  | 
| Field Detail | 
|---|
static final String PLAIN_TEXT
text/plain
static final String TEXT_HTML
text/html
static final String TEXT_XML
text/xml
static final short PART_INLINE
Part, 
Constant Field Valuesstatic final short PART_REF
Part, 
Constant Field Values| Method Detail | 
|---|
String getSubject()
String getSender()
String getMessageBody()
String getReceiver()
void setReceiver(String to)
to - the receiver mail addressvoid setMessageBody(String message)
message - the string representation of the message bodyvoid setSender(String from)
from - the sender mail addressvoid setSubject(String title)
title - the message subjectString getHeader()
void setMimeType(String mimeType)
                 throws UnknownMimeTypeException
mimeType - the MIME type as string
UnknownMimeTypeExceptionPLAIN_TEXT, 
TEXT_HTML, 
IETF MIME RFC, 
Part.setContent(java.lang.Object, java.lang.String), 
Part.setText(java.lang.String)String getMimeType()
Part.getContentType()boolean isValid()
true - if the message is complete, otherwise false.
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org