|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Wrap a MimeMessage with routing information (from SMTP) such as SMTP specified recipients, sender, and ip address and hostname of sending server. It also contains its state which represents which processor in the mailet container it is currently running. Special processor names are "root" and "error".
Field Summary | |
static java.lang.String |
DEFAULT
|
static java.lang.String |
ERROR
|
static java.lang.String |
GHOST
|
static java.lang.String |
TRANSPORT
|
Method Summary | |
java.lang.String |
getErrorMessage()
The error message, if any, associated with this message. |
javax.mail.internet.MimeMessage |
getMessage()
Returns the MimeMessage stored in this message |
java.util.Collection |
getRecipients()
Returns a Collection of MailAddress objects that are recipients of this message |
java.lang.String |
getRemoteAddr()
The remote ip address of the server that connected to send this message |
java.lang.String |
getRemoteHost()
The remote hostname of the server that connected to send this message |
MailAddress |
getSender()
The sender of the message, as specified by the MAIL FROM header, or internally defined |
java.lang.String |
getState()
The current state of the message, such as GHOST, ERROR, or DEFAULT |
void |
setErrorMessage(java.lang.String msg)
Sets the error message associated with this message. |
void |
setMessage(javax.mail.internet.MimeMessage message)
Sets the MimeMessage associated with this message via the object. |
void |
setState(java.lang.String state)
Sets the state of this message. |
Field Detail |
public static final java.lang.String GHOST
public static final java.lang.String DEFAULT
public static final java.lang.String ERROR
public static final java.lang.String TRANSPORT
Method Detail |
public javax.mail.internet.MimeMessage getMessage() throws javax.mail.MessagingException
javax.mail.MessagingException
- - an error occured while loading this objectpublic java.util.Collection getRecipients()
public MailAddress getSender()
public java.lang.String getState()
public java.lang.String getRemoteHost()
public java.lang.String getRemoteAddr()
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String msg)
msg
- - a descriptive error messagepublic void setMessage(javax.mail.internet.MimeMessage message)
message
- - the new MimeMessage that this Mail object will wrappublic void setState(java.lang.String state)
state
- - the new state of this message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |