|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 String |
DEFAULT
|
static String |
ERROR
|
static String |
GHOST
|
static String |
TRANSPORT
|
Method Summary | |
String |
getErrorMessage()
The error message, if any, associated with this message. |
MimeMessage |
getMessage()
Returns the MimeMessage stored in this message |
Collection |
getRecipients()
Returns a Collection of MailAddress objects that are recipients of this message |
String |
getRemoteAddr()
The remote ip address of the server that connected to send this message |
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 |
String |
getState()
The current state of the message, such as GHOST, ERROR, or DEFAULT |
void |
setErrorMessage(String msg)
Sets the error message associated with this message. |
void |
setMessage(MimeMessage message)
Sets the MimeMessage associated with this message via the object. |
void |
setState(String state)
Sets the state of this message. |
Field Detail |
public static final String GHOST
public static final String DEFAULT
public static final String ERROR
public static final String TRANSPORT
Method Detail |
public MimeMessage getMessage() throws MessagingException
MessagingException
- - an error occured while loading this objectpublic Collection getRecipients()
public MailAddress getSender()
public String getState()
public String getRemoteHost()
public String getRemoteAddr()
public String getErrorMessage()
public void setErrorMessage(String msg)
msg
- - a descriptive error messagepublic void setMessage(MimeMessage message)
message
- - the new MimeMessage that this Mail object will wrappublic void setState(String state)
state
- - the new state of this message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |