|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides an interface for queued mail messages.
It provides access to the SMTP envelope information as well as the message content, but no message recipients, since they are passed to the mail agents via an extra collection.
Method Summary | |
boolean |
get8bitMIME()
Returns the 8BITMIME SMTP parameter. |
java.lang.String |
getAuth()
Returns the AUTH SMTP parameter. |
java.net.InetAddress |
getClientAddress()
Returns the SMTP client address. |
java.lang.String |
getClientDomain()
Returns the domain name of the SMTP client as provided in the HELO/EHLO command. |
long |
getCurrentDeliveryDelay(Recipient recipient)
Returns the current delivery delay for the given recipient. |
java.lang.String |
getDate()
Returns the internal message time formatted as per RFC 822. |
boolean |
getDeliverBy()
Returns the DELIVERBY SMTP parameter. |
char |
getDeliverByMode()
Returns the BYTIME SMTP parameter. |
int |
getDeliverByTime()
Returns the BYTIME SMTP parameter. |
boolean |
getDeliverByTrace()
Returns the BYTRACE SMTP parameter. |
java.lang.String |
getDSNEnvid()
Returns the DSNENVID SMTP parameter. |
java.lang.String |
getDSNRet()
Returns the DSNRET SMTP parameter. |
java.lang.String |
getFrom()
Returns the SMTP reverse-path value. |
java.io.InputStream |
getInputStream()
Returns the message content. |
long |
getMessageSize()
Returns the message size. |
MimePart |
getMimePart()
Returns a parsed MIME interpretation of the message. |
java.lang.String |
getProtocol()
Returns the submission protocol. |
java.net.InetAddress |
getServerAddress()
Returns the local SMTP server's address. |
java.lang.String |
getSMTPid()
Returns the SMTP identification string. |
long |
getTime()
Returns the internal message time. |
Method Detail |
public long getTime()
Returns the system time in the moment the message was created.
public java.lang.String getDate()
Returns the system time in the moment the message was created.
public java.lang.String getSMTPid()
Each message instance has a unique identification string.
public java.lang.String getProtocol()
One of the "LMTP", "SMTP", "ESMTP" or "LOCAL" values may be returned.
public java.lang.String getClientDomain()
public java.net.InetAddress getClientAddress()
public java.net.InetAddress getServerAddress()
public java.lang.String getFrom()
public boolean get8bitMIME()
public java.lang.String getAuth()
public java.lang.String getDSNRet()
public java.lang.String getDSNEnvid()
public boolean getDeliverBy()
public int getDeliverByTime()
public char getDeliverByMode()
public boolean getDeliverByTrace()
public long getCurrentDeliveryDelay(Recipient recipient)
recipient
- the recipient
public long getMessageSize()
This is the exact size of the whole unparsed message, including the header.
public java.io.InputStream getInputStream() throws java.io.IOException
Returns the whole unparsed message octets, including the header.
java.io.IOException
- if an I/O error occuredpublic MimePart getMimePart() throws MailException
MailException
- if an error occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |