|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
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 ValuesMethod 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
UnknownMimeTypeException
PLAIN_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-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |