|
deegree 2.5 (2011/06/29 09:44 build-8-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 java.lang.String |
PLAIN_TEXT
MIME type text/plain |
static java.lang.String |
TEXT_HTML
MIME type text/html |
static java.lang.String |
TEXT_XML
MIME type text/xml |
Method Summary | |
---|---|
java.lang.String |
getHeader()
Return mail header including sender, receiver and subject. |
java.lang.String |
getMessageBody()
Returns the message body |
java.lang.String |
getMimeType()
Returns the MIME type of the message body. |
java.lang.String |
getReceiver()
Returns the receiver mail address |
java.lang.String |
getSender()
Returns the sender |
java.lang.String |
getSubject()
Returns the subject. |
boolean |
isValid()
Validates the message. |
void |
setMessageBody(java.lang.String message)
Sets the message body |
void |
setMimeType(java.lang.String mimeType)
Sets the MIME type of the message |
void |
setReceiver(java.lang.String to)
Sets the receiver mail address |
void |
setSender(java.lang.String from)
Sets the sender mail address. |
void |
setSubject(java.lang.String title)
Sets the subject. |
Field Detail |
---|
static final java.lang.String PLAIN_TEXT
text/plain
static final java.lang.String TEXT_HTML
text/html
static final java.lang.String TEXT_XML
text/xml
static final short PART_INLINE
Part
,
Constant Field Valuesstatic final short PART_REF
Part
,
Constant Field ValuesMethod Detail |
---|
java.lang.String getSubject()
java.lang.String getSender()
java.lang.String getMessageBody()
java.lang.String getReceiver()
void setReceiver(java.lang.String to)
to
- the receiver mail addressvoid setMessageBody(java.lang.String message)
message
- the string representation of the message bodyvoid setSender(java.lang.String from)
from
- the sender mail addressvoid setSubject(java.lang.String title)
title
- the message subjectjava.lang.String getHeader()
void setMimeType(java.lang.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)
java.lang.String getMimeType()
Part.getContentType()
boolean isValid()
true
- if the message is complete, otherwise false.
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
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