|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.core.StandardJasenMessage
Simple implementation of a JasenMessage produced by the StandardMimeMessageParser.
StandardMimeMessageParser.parse(MimeMessage)
,
Serialized FormConstructor Summary | |
StandardJasenMessage()
|
Method Summary | |
String[] |
getAttachmentNames()
Returns the names of all attachments in the message |
String |
getEnvelopeSender()
Gets the envelope (real) sender of the message |
javax.mail.internet.InternetAddress |
getFrom()
Returns the "From" header address. |
String |
getHtmlPart()
Gets the HTML part (if it exists) |
String |
getTextPart()
Gets the text/plain part of the message |
void |
setAttachmentNames(String[] attachmentNames)
Sets the names of the attachments found in the message |
void |
setEnvelopeSender(String envelopeSender)
Sets the envelope (real) sender of the message |
void |
setFrom(javax.mail.internet.InternetAddress from)
Sets the FROM sender |
void |
setHtmlPart(String htmlPart)
Sets the content of the html part found in the message |
void |
setTextPart(String textPart)
Sets the content of the plain text part found in the message |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StandardJasenMessage()
Method Detail |
public String getTextPart() throws JasenException
JasenMessage
getTextPart
in interface JasenMessage
JasenException
public String getHtmlPart() throws JasenException
JasenMessage
getHtmlPart
in interface JasenMessage
JasenException
public String[] getAttachmentNames() throws JasenException
JasenMessage
getAttachmentNames
in interface JasenMessage
JasenException
public void setAttachmentNames(String[] attachmentNames)
attachmentNames
- The attachmentNames to set.public void setHtmlPart(String htmlPart)
htmlPart
- The htmlPart to set.public void setTextPart(String textPart)
textPart
- The textPart to set.public String getEnvelopeSender()
getEnvelopeSender
in interface JasenMessage
public void setEnvelopeSender(String envelopeSender)
envelopeSender
- The envelopeSender to set.public javax.mail.internet.InternetAddress getFrom()
JasenMessage
getFrom
in interface JasenMessage
public void setFrom(javax.mail.internet.InternetAddress from)
from
- The sender as found in the FROM header of a MIME message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |