Package | Description |
---|---|
com.sun.mail.dsn |
Support for creating and parsing Delivery Status Notifications.
|
com.sun.mail.gimap |
An EXPERIMENTAL IMAP protocol provider that supports the
Gmail-specific IMAP protocol extensions
.
|
com.sun.mail.imap |
An IMAP protocol provider for the JavaMail API
that provides access to an IMAP message store.
|
com.sun.mail.pop3 |
A POP3 protocol provider for the JavaMail API
that provides access to a POP3 message store.
|
com.sun.mail.smtp |
An SMTP protocol provider for the JavaMail API
that provides access to an SMTP server.
|
com.sun.mail.util |
Utility classes for use with the JavaMail API.
|
com.sun.mail.util.logging |
Contains JavaMailTM extensions for
the JavaTM platform's core logging
facilities.
|
javax.mail |
The JavaMailTM API
provides classes that model a mail system.
|
javax.mail.internet |
Classes specific to Internet mail systems.
|
Modifier and Type | Method and Description |
---|---|
void |
MultipartReport.addBodyPart(BodyPart part)
Adds a Part to the multipart.
|
void |
MultipartReport.addBodyPart(BodyPart part,
int index)
Adds a BodyPart at position
index . |
DeliveryStatus |
MultipartReport.getDeliveryStatus()
Deprecated.
use getReport instead
|
Report |
MultipartReport.getReport()
Get the report associated with this multipart/report.
|
MimeMessage |
MultipartReport.getReturnedMessage()
Get the original message that is being returned along with this
multipart/report.
|
java.lang.String |
MultipartReport.getText()
Get the plain text to be presented to the user, if there is any.
|
MimeBodyPart |
MultipartReport.getTextBodyPart()
Return the body part containing the message to be presented to
the user, usually just a text/plain part.
|
boolean |
MultipartReport.removeBodyPart(BodyPart part)
Remove the specified part from the multipart message.
|
void |
MultipartReport.removeBodyPart(int index)
Remove the part at specified location (starting from 0).
|
private void |
MultipartReport.setBodyPart(BodyPart part,
int index) |
void |
MessageHeaders.setDataHandler(javax.activation.DataHandler dh)
Can't set any content for a MessageHeaders object.
|
void |
MultipartReport.setDeliveryStatus(DeliveryStatus status)
Deprecated.
use setReport instead
|
void |
MultipartReport.setReport(Report report)
Set the report associated with this multipart/report.
|
void |
MultipartReport.setReturnedMessage(MimeMessage msg)
Set the original message to be returned as part of the
multipart/report.
|
void |
MultipartReport.setSubType(java.lang.String subtype)
Set the subtype.
|
void |
MultipartReport.setText(java.lang.String text)
Set the message to be presented to the user as just a text/plain
part containing the specified text.
|
void |
MultipartReport.setTextBodyPart(MimeBodyPart mbp)
Set the body part containing the text to be presented to the
user.
|
Constructor and Description |
---|
DeliveryStatus()
Construct a delivery status notification with no content.
|
DeliveryStatus(java.io.InputStream is)
Construct a delivery status notification by parsing the
supplied input stream.
|
DispositionNotification()
Construct a disposition notification with no content.
|
DispositionNotification(java.io.InputStream is)
Construct a disposition notification by parsing the
supplied input stream.
|
MessageHeaders()
Construct a MessageHeaders object.
|
MessageHeaders(java.io.InputStream is)
Constructs a MessageHeaders object from the given InputStream.
|
MessageHeaders(InternetHeaders headers)
Constructs a MessageHeaders object using the given InternetHeaders.
|
MultipartReport()
Construct a multipart/report object with no content.
|
MultipartReport(javax.activation.DataSource ds)
Constructs a MultipartReport object and its bodyparts from the
given DataSource.
|
MultipartReport(java.lang.String text,
Report report)
Construct a multipart/report object with the specified plain
text and report type (DeliveryStatus or DispositionNotification)
to be returned to the user.
|
MultipartReport(java.lang.String text,
Report report,
InternetHeaders hdr)
Construct a multipart/report object with the specified plain
text, report, and headers from the original message
to be returned to the user.
|
MultipartReport(java.lang.String text,
Report report,
MimeMessage msg)
Construct a multipart/report object with the specified plain
text, report, and original message to be returned to the user.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
GmailMessage.getLabels()
Return the Gmail labels associated with this message.
|
long |
GmailMessage.getMsgId()
Return the Gmail unique message ID.
|
long |
GmailMessage.getThrId()
Return the Gmail unique thread ID.
|
protected boolean |
GmailStore.protocolConnect(java.lang.String host,
int pport,
java.lang.String user,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
IMAPFolder.addACL(ACL acl)
Add an access control list entry to the access control list
for this folder.
|
void |
IMAPMessage.addFrom(Address[] addresses) |
void |
IMAPBodyPart.addHeader(java.lang.String name,
java.lang.String value) |
void |
IMAPMessage.addHeader(java.lang.String name,
java.lang.String value) |
void |
IMAPBodyPart.addHeaderLine(java.lang.String line) |
void |
IMAPMessage.addHeaderLine(java.lang.String line) |
Message[] |
IMAPFolder.addMessages(Message[] msgs)
Append the given messages into this folder.
|
void |
IMAPMessage.addRecipients(Message.RecipientType type,
Address[] addresses) |
void |
IMAPFolder.addRights(ACL acl)
Add the rights specified in the ACL to the entry for the
identifier specified in the ACL.
|
void |
IMAPFolder.appendMessages(Message[] msgs)
Append the given messages into this folder.
|
void |
DefaultFolder.appendMessages(Message[] msgs) |
AppendUID[] |
IMAPFolder.appendUIDMessages(Message[] msgs)
Append the given messages into this folder.
|
protected void |
IMAPFolder.checkExists() |
private void |
IMAPFolder.checkFlags(Flags flags) |
protected void |
IMAPFolder.checkRange(int msgno) |
void |
IMAPStore.close()
Close this Store.
|
void |
IMAPFolder.close(boolean expunge)
Close this folder.
|
private void |
IMAPFolder.close(boolean expunge,
boolean force) |
void |
IMAPFolder.copyMessages(Message[] msgs,
Folder folder)
Copy the specified messages from this folder, to the
specified destination.
|
AppendUID[] |
IMAPFolder.copyUIDMessages(Message[] msgs,
Folder folder)
Copy the specified messages from this folder, to the
specified destination.
|
boolean |
IMAPFolder.create(int type)
Create this folder, with the specified type.
|
boolean |
IMAPFolder.delete(boolean recurse)
Delete this folder.
|
boolean |
DefaultFolder.delete(boolean recurse) |
java.lang.Object |
IMAPFolder.doCommand(IMAPFolder.ProtocolCommand cmd)
Execute a user-supplied IMAP command.
|
java.lang.Object |
IMAPFolder.doCommandIgnoreFailure(IMAPFolder.ProtocolCommand cmd) |
private Folder[] |
IMAPFolder.doList(java.lang.String pattern,
boolean subscribed) |
java.lang.Object |
IMAPFolder.doOptionalCommand(java.lang.String err,
IMAPFolder.ProtocolCommand cmd) |
boolean |
IMAPFolder.exists()
Check whether this folder really exists on the server.
|
Message[] |
IMAPFolder.expunge()
Expunge all messages marked as DELETED.
|
Message[] |
DefaultFolder.expunge() |
Message[] |
IMAPFolder.expunge(Message[] msgs)
Expunge the indicated messages, which must have been marked as DELETED.
|
void |
IMAPFolder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch attributes, based on the given FetchProfile.
|
protected java.lang.Object |
IMAPMessage.fetchItem(FetchItem fitem)
Fetch an individual item for the current message.
|
void |
IMAPFolder.forceClose()
Close this folder without waiting for the server.
|
ACL[] |
IMAPFolder.getACL()
Get the access control list entries for this folder.
|
java.util.Enumeration |
IMAPBodyPart.getAllHeaderLines() |
java.util.Enumeration |
IMAPMessage.getAllHeaderLines()
Get all header-lines.
|
java.util.Enumeration |
IMAPBodyPart.getAllHeaders() |
java.util.Enumeration |
IMAPMessage.getAllHeaders()
Get all headers.
|
java.lang.String[] |
IMAPFolder.getAttributes()
Get the attributes that the IMAP server returns with the
LIST response.
|
BodyPart |
IMAPMultipartDataSource.getBodyPart(int index) |
java.lang.String |
IMAPBodyPart.getContentID() |
java.lang.String |
IMAPMessage.getContentID()
Get the Content-ID.
|
java.lang.String[] |
IMAPMessage.getContentLanguage()
Get the content language.
|
java.lang.String |
IMAPBodyPart.getContentMD5() |
java.lang.String |
IMAPMessage.getContentMD5()
Get the Content-MD5.
|
protected java.io.InputStream |
IMAPBodyPart.getContentStream() |
protected java.io.InputStream |
IMAPMessage.getContentStream()
Get all the bytes for this message.
|
java.lang.String |
IMAPBodyPart.getContentType() |
java.lang.String |
IMAPMessage.getContentType()
Get the Content-Type.
|
javax.activation.DataHandler |
IMAPBodyPart.getDataHandler() |
javax.activation.DataHandler |
IMAPMessage.getDataHandler()
Get the DataHandler object for this message.
|
Folder |
IMAPStore.getDefaultFolder()
Get the default folder, representing the root of this user's
namespace.
|
int |
IMAPFolder.getDeletedMessageCount()
Get the deleted message count.
|
java.lang.String |
IMAPBodyPart.getDescription() |
java.lang.String |
IMAPMessage.getDescription()
Get the decoded Content-Description.
|
java.lang.String |
IMAPBodyPart.getDisposition() |
java.lang.String |
IMAPMessage.getDisposition()
Get the Content-Disposition.
|
java.lang.String |
IMAPBodyPart.getEncoding() |
java.lang.String |
IMAPMessage.getEncoding()
Get the Content-Transfer-Encoding.
|
java.lang.String |
IMAPBodyPart.getFileName() |
java.lang.String |
IMAPMessage.getFileName()
Get the "filename" Disposition parameter.
|
Flags |
IMAPMessage.getFlags()
Get the Flags for this message.
|
Folder |
IMAPFolder.getFolder(java.lang.String name)
Get the named subfolder.
|
Folder |
IMAPStore.getFolder(java.lang.String name)
Get named folder.
|
Folder |
DefaultFolder.getFolder(java.lang.String name) |
Folder |
IMAPStore.getFolder(URLName url)
Get named folder.
|
Address[] |
IMAPMessage.getFrom()
Get the "From" attribute.
|
java.lang.String[] |
IMAPBodyPart.getHeader(java.lang.String name) |
java.lang.String[] |
IMAPMessage.getHeader(java.lang.String name)
Get the named header.
|
java.lang.String |
IMAPMessage.getHeader(java.lang.String name,
java.lang.String delimiter)
Get the named header.
|
private java.io.InputStream |
IMAPBodyPart.getHeaderStream()
Return the MIME format stream of headers for this body part.
|
long |
IMAPFolder.getHighestModSeq()
Returns the HIGHESTMODSEQ for this folder.
|
java.lang.String |
IMAPMessage.getInReplyTo()
Get the In-Reply-To header.
|
java.lang.Object |
IMAPMessage.getItem(FetchItem fitem)
Return the data associated with the FetchItem.
|
int |
IMAPBodyPart.getLineCount() |
int |
IMAPMessage.getLineCount()
Get the total number of lines.
|
java.util.Enumeration |
IMAPBodyPart.getMatchingHeaderLines(java.lang.String[] names) |
java.util.Enumeration |
IMAPMessage.getMatchingHeaderLines(java.lang.String[] names)
Get all matching header-lines.
|
java.util.Enumeration |
IMAPBodyPart.getMatchingHeaders(java.lang.String[] names) |
java.util.Enumeration |
IMAPMessage.getMatchingHeaders(java.lang.String[] names)
Get matching headers.
|
Message |
IMAPFolder.getMessage(int msgnum)
Get the specified message.
|
Message |
IMAPFolder.getMessageByUID(long uid)
Get the Message corresponding to the given UID.
|
int |
IMAPFolder.getMessageCount()
Get the total message count.
|
java.lang.String |
IMAPMessage.getMessageID()
Get the Message-ID.
|
Message[] |
IMAPFolder.getMessagesByUID(long[] uids)
Get the Messages specified by the given array.
|
Message[] |
IMAPFolder.getMessagesByUID(long start,
long end)
Get the Messages specified by the given range.
|
Message[] |
IMAPFolder.getMessagesByUIDChangedSince(long start,
long end,
long modseq)
Get the messages that have been changed since the given MODSEQ value.
|
java.io.InputStream |
IMAPBodyPart.getMimeStream()
Return the MIME format stream corresponding to this message part.
|
java.io.InputStream |
IMAPMessage.getMimeStream()
Return the MIME format stream corresponding to this message.
|
long |
IMAPMessage.getModSeq()
Return the modification sequence number (MODSEQ) for this message.
|
private Namespaces |
IMAPStore.getNamespaces() |
int |
IMAPFolder.getNewMessageCount()
Get the new message count.
|
java.util.Enumeration |
IMAPBodyPart.getNonMatchingHeaderLines(java.lang.String[] names) |
java.util.Enumeration |
IMAPMessage.getNonMatchingHeaderLines(java.lang.String[] names)
Get all non-matching headerlines.
|
java.util.Enumeration |
IMAPBodyPart.getNonMatchingHeaders(java.lang.String[] names) |
java.util.Enumeration |
IMAPMessage.getNonMatchingHeaders(java.lang.String[] names)
Get non-matching headers.
|
Folder |
IMAPFolder.getParent()
Get this folder's parent.
|
Folder[] |
IMAPStore.getPersonalNamespaces()
Using the IMAP NAMESPACE command (RFC 2342), return a set
of folders representing the Personal namespaces.
|
(package private) IMAPProtocol |
IMAPStore.getProtocol(IMAPFolder folder) |
Quota[] |
IMAPFolder.getQuota()
Get the quotas for the quotaroot associated with this
folder.
|
Quota[] |
IMAPStore.getQuota(java.lang.String root)
Get the quotas for the named quota root.
|
java.util.Date |
IMAPMessage.getReceivedDate()
Get the recieved date (INTERNALDATE)
|
Address[] |
IMAPMessage.getRecipients(Message.RecipientType type)
Get the desired Recipient type.
|
Address[] |
IMAPMessage.getReplyTo()
Get the ReplyTo addresses.
|
Address |
IMAPMessage.getSender()
Get the "Sender" attribute.
|
java.util.Date |
IMAPMessage.getSentDate()
Get the SentDate.
|
char |
IMAPFolder.getSeparator()
Get the separator character.
|
Folder[] |
IMAPStore.getSharedNamespaces()
Using the IMAP NAMESPACE command (RFC 2342), return a set
of folders representing the Shared namespaces.
|
int |
IMAPBodyPart.getSize() |
int |
IMAPNestedMessage.getSize() |
int |
IMAPMessage.getSize()
Get the message size.
|
Message[] |
IMAPFolder.getSortedMessages(SortTerm[] term)
Sort the messages in the folder according to the sort criteria.
|
Message[] |
IMAPFolder.getSortedMessages(SortTerm[] term,
SearchTerm sterm)
Sort the messages in the folder according to the sort criteria.
|
long |
IMAPFolder.getStatusItem(java.lang.String item)
Use the IMAP STATUS command to get the indicated item.
|
java.lang.String |
IMAPMessage.getSubject()
Get the decoded subject.
|
int |
IMAPFolder.getType()
Get the type of this folder.
|
long |
IMAPFolder.getUID(Message message)
Get the UID for the specified message.
|
long |
IMAPFolder.getUIDNext()
Returns the predicted UID that will be assigned to the
next message that is appended to this folder.
|
long |
IMAPFolder.getUIDValidity()
Returns the UIDValidity for this folder.
|
int |
IMAPFolder.getUnreadMessageCount()
Get the unread message count.
|
Folder[] |
IMAPStore.getUserNamespaces(java.lang.String user)
Using the IMAP NAMESPACE command (RFC 2342), return a set
of folders representing the User's namespaces.
|
protected void |
IMAPMessage.handleExtensionFetchItems(java.util.Map extensionItems)
Apply the data in the extension FETCH items to this message.
|
protected boolean |
IMAPMessage.handleFetchItem(Item item,
java.lang.String[] hdrs,
boolean allHeaders)
Apply the data in the FETCH item to this message.
|
(package private) boolean |
IMAPFolder.handleIdle(boolean once)
Read a response from the server while we're in the IDLE state.
|
boolean |
IMAPStore.hasCapability(java.lang.String capability)
Return true if the specified capability string is in the list
of capabilities the server announced.
|
boolean |
IMAPFolder.hasNewMessages()
Check whether this folder has new messages.
|
boolean |
DefaultFolder.hasNewMessages() |
java.util.Map<java.lang.String,java.lang.String> |
IMAPFolder.id(java.util.Map<java.lang.String,java.lang.String> clientParams)
Send the IMAP ID command (if supported by the server) and return
the result from the server.
|
java.util.Map<java.lang.String,java.lang.String> |
IMAPStore.id(java.util.Map<java.lang.String,java.lang.String> clientParams)
Send the IMAP ID command (if supported by the server) and return
the result from the server.
|
void |
IMAPFolder.idle()
Use the IMAP IDLE command (see
RFC 2177),
if supported by the server, to enter idle mode so that the server
can send unsolicited notifications of new messages arriving, etc.
|
void |
IMAPStore.idle()
Use the IMAP IDLE command (see
RFC 2177),
if supported by the server, to enter idle mode so that the server
can send unsolicited notifications
without the need for the client to constantly poll the server.
|
void |
IMAPFolder.idle(boolean once)
Like
IMAPFolder.idle() , but if once is true, abort the
IDLE command after the first notification, to allow the caller
to process any notification synchronously. |
boolean |
IMAPMessage.isSet(Flags.Flag flag)
Test if the given Flags are set in this message.
|
Folder[] |
IMAPFolder.list(java.lang.String pattern)
List all subfolders matching the specified pattern.
|
Folder[] |
DefaultFolder.list(java.lang.String pattern) |
Rights[] |
IMAPFolder.listRights(java.lang.String name)
Get all the rights that may be allowed to the given identifier.
|
Folder[] |
IMAPFolder.listSubscribed(java.lang.String pattern)
List all subscribed subfolders matching the specified pattern.
|
Folder[] |
DefaultFolder.listSubscribed(java.lang.String pattern) |
private void |
IMAPMessage.loadBODYSTRUCTURE() |
private void |
IMAPMessage.loadEnvelope() |
private void |
IMAPMessage.loadFlags() |
private void |
IMAPBodyPart.loadHeaders() |
private void |
IMAPMessage.loadHeaders() |
Rights |
IMAPFolder.myRights()
Get the rights allowed to the currently authenticated user.
|
void |
IMAPFolder.open(int mode)
Open this folder in the given mode.
|
java.util.List<MailEvent> |
IMAPFolder.open(int mode,
ResyncData rd)
Open this folder in the given mode, with the given
resynchronization data.
|
protected boolean |
IMAPStore.protocolConnect(java.lang.String host,
int pport,
java.lang.String user,
java.lang.String password)
Implementation of protocolConnect().
|
void |
IMAPFolder.removeACL(java.lang.String name)
Remove any access control list entry for the given identifier
from the access control list for this folder.
|
void |
IMAPBodyPart.removeHeader(java.lang.String name) |
void |
IMAPMessage.removeHeader(java.lang.String name) |
void |
IMAPFolder.removeRights(ACL acl)
Remove the rights specified in the ACL from the entry for the
identifier specified in the ACL.
|
boolean |
IMAPFolder.renameTo(Folder f)
Rename this folder.
|
boolean |
DefaultFolder.renameTo(Folder f) |
Message[] |
IMAPFolder.search(SearchTerm term)
Search whole folder for messages matching the given term.
|
Message[] |
IMAPFolder.search(SearchTerm term,
Message[] msgs)
Search the folder for messages matching the given term.
|
private void |
IMAPFolder.setACL(ACL acl,
char mod) |
void |
IMAPBodyPart.setContent(Multipart mp) |
void |
IMAPBodyPart.setContent(java.lang.Object o,
java.lang.String type) |
void |
IMAPMessage.setContentID(java.lang.String cid) |
void |
IMAPMessage.setContentLanguage(java.lang.String[] languages) |
void |
IMAPBodyPart.setContentMD5(java.lang.String md5) |
void |
IMAPMessage.setContentMD5(java.lang.String md5) |
void |
IMAPBodyPart.setDataHandler(javax.activation.DataHandler content) |
void |
IMAPMessage.setDataHandler(javax.activation.DataHandler content) |
void |
IMAPBodyPart.setDescription(java.lang.String description,
java.lang.String charset) |
void |
IMAPMessage.setDescription(java.lang.String description,
java.lang.String charset) |
void |
IMAPBodyPart.setDisposition(java.lang.String disposition) |
void |
IMAPMessage.setDisposition(java.lang.String disposition) |
void |
IMAPBodyPart.setFileName(java.lang.String filename) |
void |
IMAPMessage.setFileName(java.lang.String filename) |
void |
IMAPNestedMessage.setFlags(Flags flag,
boolean set) |
void |
IMAPMessage.setFlags(Flags flag,
boolean set)
Set/Unset the given flags in this message.
|
void |
IMAPFolder.setFlags(int[] msgnums,
Flags flag,
boolean value)
Set the specified flags for the given array of message numbers.
|
void |
IMAPFolder.setFlags(int start,
int end,
Flags flag,
boolean value)
Set the specified flags for the given range of message numbers.
|
void |
IMAPFolder.setFlags(Message[] msgs,
Flags flag,
boolean value)
Set the specified flags for the given array of messages.
|
void |
IMAPMessage.setFrom(Address address) |
void |
IMAPBodyPart.setHeader(java.lang.String name,
java.lang.String value) |
void |
IMAPMessage.setHeader(java.lang.String name,
java.lang.String value) |
void |
IMAPFolder.setQuota(Quota quota)
Set the quotas for the quotaroot specified in the quota argument.
|
void |
IMAPStore.setQuota(Quota quota)
Set the quotas for the quota root specified in the quota argument.
|
void |
IMAPMessage.setRecipients(Message.RecipientType type,
Address[] addresses) |
void |
IMAPMessage.setReplyTo(Address[] addresses) |
void |
IMAPMessage.setSender(Address address) |
void |
IMAPMessage.setSentDate(java.util.Date d) |
void |
IMAPMessage.setSubject(java.lang.String subject,
java.lang.String charset) |
void |
IMAPFolder.setSubscribed(boolean subscribe)
Subscribe/Unsubscribe this folder.
|
(package private) void |
IMAPFolder.startIdle(IdleManager im)
Start the IDLE command and put this folder into the IDLE state.
|
void |
IdleManager.watch(Folder folder)
Watch the Folder for new messages and other events using the IMAP IDLE
command.
|
void |
IMAPMessage.writeTo(java.io.OutputStream os)
Write out the bytes into the given OutputStream.
|
Constructor and Description |
---|
MessageLiteral(Message msg,
int maxsize) |
Modifier and Type | Method and Description |
---|---|
void |
POP3Message.addHeader(java.lang.String name,
java.lang.String value)
Add this value to the existing values for this header_name.
|
void |
POP3Message.addHeaderLine(java.lang.String line)
Add a raw RFC822 header-line.
|
void |
POP3Folder.appendMessages(Message[] msgs)
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't support appending messages. |
void |
DefaultFolder.appendMessages(Message[] msgs) |
java.util.Map |
POP3Store.capabilities()
Return a Map of the capabilities the server provided,
as per RFC 2449.
|
private void |
POP3Store.checkConnected() |
void |
POP3Store.close() |
void |
POP3Folder.close(boolean expunge) |
void |
DefaultFolder.close(boolean expunge) |
boolean |
POP3Folder.create(int type)
Always returns
false ; the POP3 protocol doesn't
support creating folders. |
boolean |
DefaultFolder.create(int type) |
protected POP3Message |
POP3Folder.createMessage(Folder f,
int msgno) |
boolean |
POP3Folder.delete(boolean recurse)
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't allow the INBOX to
be deleted. |
boolean |
DefaultFolder.delete(boolean recurse) |
Message[] |
POP3Folder.expunge()
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't support expunging messages
without closing the folder; call the close method
with the expunge argument set to true
instead. |
Message[] |
DefaultFolder.expunge() |
void |
POP3Folder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch information about POP3 messages.
|
java.util.Enumeration |
POP3Message.getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
java.util.Enumeration |
POP3Message.getAllHeaders()
Return all the headers from this Message as an enumeration
of Header objects.
|
protected java.io.InputStream |
POP3Message.getContentStream()
Produce the raw bytes of the content.
|
Folder |
POP3Store.getDefaultFolder() |
Folder |
POP3Folder.getFolder(java.lang.String name)
Always throws
MessagingException because no POP3 folders
can contain subfolders. |
Folder |
POP3Store.getFolder(java.lang.String name)
Only the name "INBOX" is supported.
|
Folder |
DefaultFolder.getFolder(java.lang.String name) |
Folder |
POP3Store.getFolder(URLName url) |
java.lang.String[] |
POP3Message.getHeader(java.lang.String name)
Get all the headers for this header_name.
|
java.lang.String |
POP3Message.getHeader(java.lang.String name,
java.lang.String delimiter)
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
protected Folder |
DefaultFolder.getInbox() |
java.util.Enumeration |
POP3Message.getMatchingHeaderLines(java.lang.String[] names)
Get matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
POP3Message.getMatchingHeaders(java.lang.String[] names)
Return matching headers from this Message as an Enumeration of
Header objects.
|
Message |
POP3Folder.getMessage(int msgno) |
Message |
DefaultFolder.getMessage(int msgno) |
int |
POP3Folder.getMessageCount()
Will not change while the folder is open because the POP3
protocol doesn't support notification of new messages
arriving in open folders.
|
int |
DefaultFolder.getMessageCount() |
java.io.InputStream |
POP3Message.getMimeStream()
Return the MIME format stream corresponding to this message part.
|
java.util.Enumeration |
POP3Message.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
POP3Message.getNonMatchingHeaders(java.lang.String[] names)
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
(package private) Protocol |
POP3Folder.getProtocol()
Centralize access to the Protocol object by POP3Message
objects so that they will fail appropriately when the folder
is closed.
|
private java.io.InputStream |
POP3Message.getRawStream(boolean skipHeader)
Produce the raw bytes of the message.
|
int |
POP3Folder.getSize()
Return the size of this folder, as was returned by the POP3 STAT
command when this folder was opened.
|
int |
POP3Message.getSize()
Return the size of the content of this message in bytes.
|
int[] |
POP3Folder.getSizes()
Return the sizes of all messages in this folder, as returned
by the POP3 LIST command.
|
java.lang.String |
POP3Folder.getUID(Message msg)
Return the unique ID string for this message, or null if
not available.
|
boolean |
POP3Folder.hasNewMessages()
Always returns
false ; the POP3 protocol provides
no way to determine when a new message arrives. |
boolean |
DefaultFolder.hasNewMessages() |
Folder[] |
POP3Folder.list(java.lang.String pattern)
Always throws
MessagingException because no POP3 folders
can contain subfolders. |
Folder[] |
DefaultFolder.list(java.lang.String pattern) |
java.io.InputStream |
POP3Folder.listCommand()
Return the raw results of the POP3 LIST command with no arguments.
|
private void |
POP3Message.loadHeaders()
Load the headers for this message into the InternetHeaders object.
|
void |
POP3Folder.open(int mode)
Throws
FolderNotFoundException unless this
folder is named "INBOX". |
void |
DefaultFolder.open(int mode) |
protected boolean |
POP3Store.protocolConnect(java.lang.String host,
int portNum,
java.lang.String user,
java.lang.String passwd) |
void |
POP3Message.removeHeader(java.lang.String name)
Remove all headers with this name.
|
boolean |
POP3Folder.renameTo(Folder f)
Always throws
MethodNotSupportedException
because the POP3 protocol doesn't support multiple folders. |
boolean |
DefaultFolder.renameTo(Folder f) |
void |
POP3Message.saveChanges()
POP3 message can't be changed.
|
void |
POP3Message.setFlags(Flags newFlags,
boolean set)
Set the specified flags on this message to the specified value.
|
void |
POP3Message.setHeader(java.lang.String name,
java.lang.String value)
Set the value for this header_name.
|
java.io.InputStream |
POP3Message.top(int n)
Fetch the header of the message and the first
n lines
of the raw content of the message. |
void |
POP3Message.writeTo(java.io.OutputStream os,
java.lang.String[] ignoreList)
Output the message as an RFC 822 format stream, without
specified headers.
|
Constructor and Description |
---|
POP3Message(Folder folder,
int msgno) |
Modifier and Type | Field and Description |
---|---|
private MessagingException |
SMTPTransport.exception |
Modifier and Type | Method and Description |
---|---|
boolean |
SMTPSaslAuthenticator.authenticate(java.lang.String[] mechs,
java.lang.String realm,
java.lang.String authzid,
java.lang.String u,
java.lang.String p) |
boolean |
SaslAuthenticator.authenticate(java.lang.String[] mechs,
java.lang.String realm,
java.lang.String authzid,
java.lang.String u,
java.lang.String p) |
private boolean |
SMTPTransport.authenticate(java.lang.String user,
java.lang.String passwd)
Authenticate to the server.
|
(package private) boolean |
SMTPTransport.Authenticator.authenticate(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd)
Start the authentication handshake by issuing the AUTH command.
|
void |
SMTPTransport.close()
Close the Transport and terminate the connection to the server.
|
private void |
SMTPTransport.closeConnection() |
void |
SMTPTransport.connect(java.net.Socket socket)
Start the SMTP protocol on the given socket, which was already
connected by the caller.
|
protected java.io.OutputStream |
SMTPTransport.data()
Send the
DATA command to the SMTP host and return
an OutputStream to which the data is to be written. |
(package private) abstract void |
SMTPTransport.Authenticator.doAuth(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd) |
(package private) void |
SMTPTransport.LoginAuthenticator.doAuth(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd) |
(package private) void |
SMTPTransport.PlainAuthenticator.doAuth(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd) |
(package private) void |
SMTPTransport.DigestMD5Authenticator.doAuth(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd) |
(package private) void |
SMTPTransport.NtlmAuthenticator.doAuth(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd) |
protected boolean |
SMTPTransport.ehlo(java.lang.String domain)
Issue the
EHLO command. |
protected void |
SMTPTransport.finishData()
Terminate the sent data.
|
(package private) java.lang.String |
SMTPTransport.Authenticator.getInitialResponse(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd)
Provide the initial response to use in the AUTH command,
or null if not supported.
|
(package private) java.lang.String |
SMTPTransport.PlainAuthenticator.getInitialResponse(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd) |
(package private) java.lang.String |
SMTPTransport.NtlmAuthenticator.getInitialResponse(java.lang.String host,
java.lang.String authzid,
java.lang.String user,
java.lang.String passwd) |
protected void |
SMTPTransport.helo(java.lang.String domain)
Issue the
HELO command. |
void |
SMTPTransport.issueCommand(java.lang.String cmd,
int expect)
Send the command to the server.
|
private void |
SMTPTransport.issueSendCommand(java.lang.String cmd,
int expect)
Issue a command that's part of sending a message.
|
protected void |
SMTPTransport.mailFrom()
Issue the
MAIL FROM: command to start sending a message. |
private void |
SMTPTransport.openServer()
Start the protocol to the server on serverSocket,
assumed to be provided and connected by the caller.
|
private void |
SMTPTransport.openServer(java.lang.String host,
int port)
Connect to host on port and start the SMTP protocol.
|
protected boolean |
SMTPTransport.protocolConnect(java.lang.String host,
int port,
java.lang.String user,
java.lang.String passwd)
Performs the actual protocol-specific connection attempt.
|
protected void |
SMTPTransport.rcptTo()
Sends each address to the SMTP host using the
RCPT TO:
command and copies the address either into
the validSentAddr or invalidAddr arrays. |
protected int |
SMTPTransport.readServerResponse()
Reads server reponse returning the
returnCode
as the number. |
boolean |
SMTPTransport.sasllogin(java.lang.String[] allowed,
java.lang.String realm,
java.lang.String authzid,
java.lang.String u,
java.lang.String p)
SASL-based login.
|
private void |
SMTPTransport.sendCommand(byte[] cmdBytes) |
protected void |
SMTPTransport.sendCommand(java.lang.String cmd)
Sends command
cmd to the server terminating
it with CRLF . |
void |
SMTPTransport.sendMessage(Message message,
Address[] addresses)
Send the Message to the specified list of addresses.
|
protected int |
SMTPTransport.simpleCommand(byte[] cmd)
Send the command to the server and return the response code
from the server.
|
int |
SMTPTransport.simpleCommand(java.lang.String cmd)
Send the command to the server and return the response code
from the server.
|
protected void |
SMTPTransport.startTLS()
Issue the
STARTTLS command and switch the socket to
TLS mode if it succeeds. |
Constructor and Description |
---|
SMTPMessage(MimeMessage source)
Constructs a new SMTPMessage with content initialized from the
source MimeMessage. |
SMTPMessage(Session session,
java.io.InputStream is)
Constructs an SMTPMessage by reading and parsing the data from the
specified MIME InputStream.
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
ReadableMime.getMimeStream()
Return the MIME format stream corresponding to this message part.
|
Modifier and Type | Method and Description |
---|---|
private static MessagingException |
MailHandler.attach(MessagingException required,
java.lang.Exception optional)
Try to attach a suppressed exception to a MessagingException in any order
that is possible.
|
Modifier and Type | Method and Description |
---|---|
private static MessagingException |
MailHandler.attach(MessagingException required,
java.lang.Exception optional)
Try to attach a suppressed exception to a MessagingException in any order
that is possible.
|
Modifier and Type | Method and Description |
---|---|
private MimeBodyPart |
MailHandler.createBodyPart()
Factory to create the in-line body part.
|
private MimeBodyPart |
MailHandler.createBodyPart(int index)
Factory to create the attachment body part.
|
private void |
MailHandler.setContent(MimeBodyPart part,
java.lang.CharSequence buf,
java.lang.String type)
Set the content for a part using the encoding assigned to the handler.
|
private java.lang.String |
MailHandler.toRawString(Message msg)
Converts an email message to a raw string.
|
Modifier and Type | Method and Description |
---|---|
void |
Multipart.addBodyPart(BodyPart part)
Adds a Part to the multipart.
|
void |
Multipart.addBodyPart(BodyPart part,
int index)
Adds a BodyPart at position
index . |
abstract void |
Message.addFrom(Address[] addresses)
Add these addresses to the existing "From" attribute
|
void |
Part.addHeader(java.lang.String header_name,
java.lang.String header_value)
Add this value to the existing values for this header_name.
|
void |
Message.addRecipient(Message.RecipientType type,
Address address)
Add this recipient address to the existing ones of the given type.
|
abstract void |
Message.addRecipients(Message.RecipientType type,
Address[] addresses)
Add these recipient addresses to the existing ones of the given type.
|
abstract void |
Folder.appendMessages(Message[] msgs)
Append given Messages to this folder.
|
void |
Service.close()
Close this service and terminate its connection.
|
abstract void |
Folder.close(boolean expunge)
Close this Folder.
|
void |
Service.connect()
A generic connect method that takes no parameters.
|
void |
Service.connect(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
Similar to connect(host, user, password) except a specific port
can be specified.
|
void |
Service.connect(java.lang.String user,
java.lang.String password)
Connect to the current host using the specified username
and password.
|
void |
Service.connect(java.lang.String host,
java.lang.String user,
java.lang.String password)
Connect to the specified address.
|
void |
Folder.copyMessages(Message[] msgs,
Folder folder)
Copy the specified Messages from this Folder into another
Folder.
|
abstract boolean |
Folder.create(int type)
Create this folder on the Store.
|
abstract boolean |
Folder.delete(boolean recurse)
Delete this Folder.
|
abstract boolean |
Folder.exists()
Tests if this folder physically exists on the Store.
|
abstract Message[] |
Folder.expunge()
Expunge (permanently remove) messages marked DELETED.
|
void |
Folder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch the items specified in the FetchProfile for the
given Messages.
|
java.util.Enumeration |
Part.getAllHeaders()
Return all the headers from this part as an Enumeration of
Header objects.
|
Address[] |
Message.getAllRecipients()
Get all the recipient addresses for the message.
|
BodyPart |
MultipartDataSource.getBodyPart(int index)
Get the specified Part.
|
BodyPart |
Multipart.getBodyPart(int index)
Get the specified Part.
|
java.lang.Object |
Part.getContent()
Return the content as a Java object.
|
java.lang.String |
Part.getContentType()
Returns the Content-Type of the content of this part.
|
int |
Multipart.getCount()
Return the number of enclosed BodyPart objects.
|
javax.activation.DataHandler |
Part.getDataHandler()
Return a DataHandler for the content within this part.
|
abstract Folder |
Store.getDefaultFolder()
Returns a Folder object that represents the 'root' of
the default namespace presented to the user by the Store.
|
int |
Folder.getDeletedMessageCount()
Get the number of deleted messages in this Folder.
|
java.lang.String |
Part.getDescription()
Return a description String for this part.
|
java.lang.String |
Part.getDisposition()
Return the disposition of this part.
|
java.lang.String |
Part.getFileName()
Get the filename associated with this part, if possible.
|
abstract Flags |
Message.getFlags()
Returns a
Flags object containing the flags for
this message. |
abstract Folder |
Store.getFolder(java.lang.String name)
Return the Folder object corresponding to the given name.
|
abstract Folder |
Folder.getFolder(java.lang.String name)
Return the Folder object corresponding to the given name.
|
abstract Folder |
Store.getFolder(URLName url)
Return a closed Folder object, corresponding to the given
URLName.
|
Folder |
Session.getFolder(URLName url)
Get a closed Folder object for the given URLName.
|
abstract Address[] |
Message.getFrom()
Returns the "From" attribute.
|
java.lang.String[] |
Part.getHeader(java.lang.String header_name)
Get all the headers for this header name.
|
java.io.InputStream |
Part.getInputStream()
Return an input stream for this part's "content".
|
int |
Part.getLineCount()
Return the number of lines in the content of this part.
|
java.util.Enumeration |
Part.getMatchingHeaders(java.lang.String[] header_names)
Return matching headers from this part as an Enumeration of
Header objects.
|
abstract Message |
Folder.getMessage(int msgnum)
Get the Message object corresponding to the given message
number.
|
private static Message |
MessageContext.getMessage(Part p)
Return the Message containing an arbitrary Part.
|
Message |
UIDFolder.getMessageByUID(long uid)
Get the Message corresponding to the given UID.
|
abstract int |
Folder.getMessageCount()
Get total number of messages in this Folder.
|
Message[] |
Folder.getMessages()
Get all Message objects from this Folder.
|
Message[] |
Folder.getMessages(int[] msgnums)
Get the Message objects for message numbers specified in
the array.
|
Message[] |
Folder.getMessages(int start,
int end)
Get the Message objects for message numbers ranging from start
through end, both start and end inclusive.
|
Message[] |
UIDFolder.getMessagesByUID(long[] uids)
Get the Messages specified by the given array of UIDs.
|
Message[] |
UIDFolder.getMessagesByUID(long start,
long end)
Get the Messages specified by the given range.
|
int |
Folder.getNewMessageCount()
Get the number of new messages in this Folder.
|
java.util.Enumeration |
Part.getNonMatchingHeaders(java.lang.String[] header_names)
Return non-matching headers from this envelope as an Enumeration
of Header objects.
|
abstract Folder |
Folder.getParent()
Returns the parent folder of this folder.
|
Folder[] |
Store.getPersonalNamespaces()
Return a set of folders representing the personal namespaces
for the current user.
|
Quota[] |
QuotaAwareStore.getQuota(java.lang.String folder)
Get the quotas for the named folder.
|
abstract java.util.Date |
Message.getReceivedDate()
Get the date this message was received.
|
abstract Address[] |
Message.getRecipients(Message.RecipientType type)
Get all the recipient addresses of the given type.
|
Address[] |
Message.getReplyTo()
Get the addresses to which replies should be directed.
|
abstract java.util.Date |
Message.getSentDate()
Get the date this message was sent.
|
abstract char |
Folder.getSeparator()
Return the delimiter character that separates this Folder's pathname
from the names of immediate subfolders.
|
Folder[] |
Store.getSharedNamespaces()
Return a set of folders representing the shared namespaces.
|
int |
Part.getSize()
Return the size of the content of this part in bytes.
|
abstract java.lang.String |
Message.getSubject()
Get the subject of this message.
|
abstract int |
Folder.getType()
Returns the type of this Folder, that is, whether this folder can hold
messages or subfolders or both.
|
long |
UIDFolder.getUID(Message message)
Get the UID for the specified message.
|
long |
UIDFolder.getUIDValidity()
Returns the UIDValidity value associated with this folder.
|
int |
Folder.getUnreadMessageCount()
Get the total number of unread messages in this Folder.
|
URLName |
Folder.getURLName()
Return a URLName representing this folder.
|
Folder[] |
Store.getUserNamespaces(java.lang.String user)
Return a set of folders representing the namespaces for
user . |
abstract boolean |
Folder.hasNewMessages()
Returns true if this Folder has new messages since the last time
this indication was reset.
|
boolean |
Part.isMimeType(java.lang.String mimeType)
Is this Part of the specified MIME type? This method
compares only the
primaryType and
subType . |
boolean |
Message.isSet(Flags.Flag flag)
Check whether the flag specified in the
flag
argument is set in this message. |
Folder[] |
Folder.list()
Convenience method that returns the list of folders under this
Folder.
|
abstract Folder[] |
Folder.list(java.lang.String pattern)
Returns a list of Folders belonging to this Folder's namespace
that match the specified pattern.
|
Folder[] |
Folder.listSubscribed()
Convenience method that returns the list of subscribed folders
under this Folder.
|
Folder[] |
Folder.listSubscribed(java.lang.String pattern)
Returns a list of subscribed Folders belonging to this Folder's
namespace that match the specified pattern.
|
boolean |
Message.match(SearchTerm term)
Apply the specified Search criterion to this message.
|
abstract void |
Folder.open(int mode)
Open this Folder.
|
protected boolean |
Service.protocolConnect(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
The service implementation should override this method to
perform the actual protocol-specific connection attempt.
|
boolean |
Multipart.removeBodyPart(BodyPart part)
Remove the specified part from the multipart message.
|
void |
Multipart.removeBodyPart(int index)
Remove the part at specified location (starting from 0).
|
void |
Part.removeHeader(java.lang.String header_name)
Remove all headers with this name.
|
abstract boolean |
Folder.renameTo(Folder f)
Rename this Folder.
|
abstract Message |
Message.reply(boolean replyToAll)
Get a new Message suitable for a reply to this message.
|
abstract void |
Message.saveChanges()
Save any changes made to this message into the message-store
when the containing folder is closed, if the message is contained
in a folder.
|
Message[] |
Folder.search(SearchTerm term)
Search this Folder for messages matching the specified
search criterion.
|
Message[] |
Folder.search(SearchTerm term,
Message[] msgs)
Search the given array of messages for those that match the
specified search criterion.
|
static void |
Transport.send(Message msg)
Send a message.
|
static void |
Transport.send(Message msg,
Address[] addresses)
Send the message to the specified addresses, ignoring any
recipients specified in the message itself.
|
static void |
Transport.send(Message msg,
Address[] addresses,
java.lang.String user,
java.lang.String password)
Send the message to the specified addresses, ignoring any
recipients specified in the message itself.
|
static void |
Transport.send(Message msg,
java.lang.String user,
java.lang.String password)
Send a message.
|
private static void |
Transport.send0(Message msg,
Address[] addresses,
java.lang.String user,
java.lang.String password) |
abstract void |
Transport.sendMessage(Message msg,
Address[] addresses)
Send the Message to the specified list of addresses.
|
void |
Part.setContent(Multipart mp)
This method sets the given Multipart object as this message's
content.
|
void |
Part.setContent(java.lang.Object obj,
java.lang.String type)
A convenience method for setting this part's content.
|
void |
Part.setDataHandler(javax.activation.DataHandler dh)
This method provides the mechanism to set this part's content.
|
void |
Part.setDescription(java.lang.String description)
Set a description String for this part.
|
void |
Part.setDisposition(java.lang.String disposition)
Set the disposition of this part.
|
void |
Part.setFileName(java.lang.String filename)
Set the filename associated with this part, if possible.
|
void |
Message.setFlag(Flags.Flag flag,
boolean set)
Set the specified flag on this message to the specified value.
|
abstract void |
Message.setFlags(Flags flag,
boolean set)
Set the specified flags on this message to the specified value.
|
void |
Folder.setFlags(int[] msgnums,
Flags flag,
boolean value)
Set the specified flags on the messages whose message numbers
are in the array.
|
void |
Folder.setFlags(int start,
int end,
Flags flag,
boolean value)
Set the specified flags on the messages numbered from start
through end, both start and end inclusive.
|
void |
Folder.setFlags(Message[] msgs,
Flags flag,
boolean value)
Set the specified flags on the messages specified in the array.
|
abstract void |
Message.setFrom()
Set the "From" attribute in this Message.
|
abstract void |
Message.setFrom(Address address)
Set the "From" attribute in this Message.
|
void |
Part.setHeader(java.lang.String header_name,
java.lang.String header_value)
Set the value for this header_name.
|
protected void |
Multipart.setMultipartDataSource(MultipartDataSource mp)
Setup this Multipart object from the given MultipartDataSource.
|
void |
QuotaAwareStore.setQuota(Quota quota)
Set the quotas for the quota root specified in the quota argument.
|
void |
Message.setRecipient(Message.RecipientType type,
Address address)
Set the recipient address.
|
abstract void |
Message.setRecipients(Message.RecipientType type,
Address[] addresses)
Set the recipient addresses.
|
void |
Message.setReplyTo(Address[] addresses)
Set the addresses to which replies should be directed.
|
abstract void |
Message.setSentDate(java.util.Date date)
Set the sent date of this message.
|
abstract void |
Message.setSubject(java.lang.String subject)
Set the subject of this message.
|
void |
Folder.setSubscribed(boolean subscribe)
Subscribe or unsubscribe this Folder.
|
void |
Part.setText(java.lang.String text)
A convenience method that sets the given String as this
part's content with a MIME type of "text/plain".
|
abstract void |
Multipart.writeTo(java.io.OutputStream os)
Output an appropriately encoded bytestream to the given
OutputStream.
|
void |
Part.writeTo(java.io.OutputStream os)
Output a bytestream for this Part.
|
Modifier and Type | Method and Description |
---|---|
private void |
MimeMessage.addAddressHeader(java.lang.String name,
Address[] addresses) |
void |
MimeMultipart.addBodyPart(BodyPart part)
Adds a Part to the multipart.
|
void |
MimeMultipart.addBodyPart(BodyPart part,
int index)
Adds a BodyPart at position
index . |
void |
MimeMessage.addFrom(Address[] addresses)
Add the specified addresses to the existing "From" field.
|
void |
MimeBodyPart.addHeader(java.lang.String name,
java.lang.String value)
Add this value to the existing values for this header_name.
|
void |
MimeMessage.addHeader(java.lang.String name,
java.lang.String value)
Add this value to the existing values for this header_name.
|
void |
MimeBodyPart.addHeaderLine(java.lang.String line)
Add a header line to this body part
|
void |
MimeMessage.addHeaderLine(java.lang.String line)
Add a raw RFC 822 header-line.
|
void |
MimePart.addHeaderLine(java.lang.String line)
Add a raw RFC822 header-line.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
Address[] addresses)
Add the given addresses to the specified recipient type.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
java.lang.String addresses)
Add the given addresses to the specified recipient type.
|
void |
MimeBodyPart.attachFile(java.io.File file)
Use the specified file to provide the data for this part.
|
void |
MimeBodyPart.attachFile(java.io.File file,
java.lang.String contentType,
java.lang.String encoding)
Use the specified file with the specified Content-Type and
Content-Transfer-Encoding to provide the data for this part.
|
void |
MimeBodyPart.attachFile(java.lang.String file)
Use the specified file to provide the data for this part.
|
void |
MimeBodyPart.attachFile(java.lang.String file,
java.lang.String contentType,
java.lang.String encoding)
Use the specified file with the specified Content-Type and
Content-Transfer-Encoding to provide the data for this part.
|
protected InternetHeaders |
MimeMessage.createInternetHeaders(java.io.InputStream is)
Create and return an InternetHeaders object that loads the
headers from the given InputStream.
|
protected InternetHeaders |
MimeMultipart.createInternetHeaders(java.io.InputStream is)
Create and return an InternetHeaders object that loads the
headers from the given InputStream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(java.io.InputStream is)
Create and return a MimeBodyPart object to represent a
body part parsed from the InputStream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InternetHeaders headers,
byte[] content)
Create and return a MimeBodyPart object to represent a
body part parsed from the InputStream.
|
private MimeBodyPart |
MimeMultipart.createMimeBodyPartIs(java.io.InputStream is) |
protected MimeMessage |
MimeMessage.createMimeMessage(Session session)
Create and return a MimeMessage object.
|
static java.io.InputStream |
MimeUtility.decode(java.io.InputStream is,
java.lang.String encoding)
Decode the given input stream.
|
static java.io.OutputStream |
MimeUtility.encode(java.io.OutputStream os,
java.lang.String encoding)
Wrap an encoder around the given output stream.
|
static java.io.OutputStream |
MimeUtility.encode(java.io.OutputStream os,
java.lang.String encoding,
java.lang.String filename)
Wrap an encoder around the given output stream.
|
private Address[] |
MimeMessage.getAddressHeader(java.lang.String name) |
java.util.Enumeration |
MimeBodyPart.getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimeMessage.getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimePart.getAllHeaderLines()
Get all header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimeBodyPart.getAllHeaders()
Return all the headers from this Message as an Enumeration of
Header objects.
|
java.util.Enumeration |
MimeMessage.getAllHeaders()
Return all the headers from this Message as an enumeration
of Header objects.
|
Address[] |
MimeMessage.getAllRecipients()
Get all the recipient addresses for the message.
|
BodyPart |
MimeMultipart.getBodyPart(int index)
Get the specified BodyPart.
|
BodyPart |
MimeMultipart.getBodyPart(java.lang.String CID)
Get the MimeBodyPart referred to by the given ContentID (CID).
|
java.lang.Object |
MimeBodyPart.getContent()
Return the content as a Java object.
|
java.lang.Object |
MimeMessage.getContent()
Return the content as a Java object.
|
java.lang.String |
MimeBodyPart.getContentID()
Returns the value of the "Content-ID" header field.
|
java.lang.String |
MimeMessage.getContentID()
Returns the value of the "Content-ID" header field.
|
java.lang.String |
MimePart.getContentID()
Get the Content-ID of this part.
|
java.lang.String[] |
MimeBodyPart.getContentLanguage()
Get the languages specified in the Content-Language header
of this MimePart.
|
java.lang.String[] |
MimeMessage.getContentLanguage()
Get the languages specified in the "Content-Language" header
field of this message.
|
java.lang.String[] |
MimePart.getContentLanguage()
Get the language tags specified in the Content-Language header
of this MimePart.
|
(package private) static java.lang.String[] |
MimeBodyPart.getContentLanguage(MimePart part) |
java.lang.String |
MimeBodyPart.getContentMD5()
Return the value of the "Content-MD5" header field.
|
java.lang.String |
MimeMessage.getContentMD5()
Return the value of the "Content-MD5" header field.
|
java.lang.String |
MimePart.getContentMD5()
Get the Content-MD5 digest of this part.
|
protected java.io.InputStream |
MimeBodyPart.getContentStream()
Produce the raw bytes of the content.
|
(package private) java.io.InputStream |
MimeBodyPart.MimePartDataHandler.getContentStream() |
protected java.io.InputStream |
MimeMessage.getContentStream()
Produce the raw bytes of the content.
|
java.lang.String |
MimeBodyPart.getContentType()
Returns the value of the RFC 822 "Content-Type" header field.
|
java.lang.String |
MimeMessage.getContentType()
Returns the value of the RFC 822 "Content-Type" header field.
|
int |
MimeMultipart.getCount()
Return the number of enclosed BodyPart objects.
|
javax.activation.DataHandler |
MimeBodyPart.getDataHandler()
Return a DataHandler for this body part's content.
|
javax.activation.DataHandler |
MimeMessage.getDataHandler()
Return a DataHandler for this Message's content.
|
java.lang.String |
MimeBodyPart.getDescription()
Returns the "Content-Description" header field of this body part.
|
java.lang.String |
MimeMessage.getDescription()
Returns the "Content-Description" header field of this Message.
|
(package private) static java.lang.String |
MimeBodyPart.getDescription(MimePart part) |
java.lang.String |
MimeBodyPart.getDisposition()
Returns the value of the "Content-Disposition" header field.
|
java.lang.String |
MimeMessage.getDisposition()
Returns the value of the "Content-Disposition" header field.
|
(package private) static java.lang.String |
MimeBodyPart.getDisposition(MimePart part) |
java.lang.String |
MimeBodyPart.getEncoding()
Returns the content transfer encoding from the
"Content-Transfer-Encoding" header
field.
|
java.lang.String |
PreencodedMimeBodyPart.getEncoding()
Returns the content transfer encoding specified when
this object was created.
|
java.lang.String |
MimeMessage.getEncoding()
Returns the content transfer encoding from the
"Content-Transfer-Encoding" header
field.
|
java.lang.String |
MimePart.getEncoding()
Get the transfer encoding of this part.
|
(package private) static java.lang.String |
MimeBodyPart.getEncoding(MimePart part) |
java.lang.String |
MimeBodyPart.getFileName()
Get the filename associated with this body part.
|
java.lang.String |
MimeMessage.getFileName()
Get the filename associated with this Message.
|
(package private) static java.lang.String |
MimeBodyPart.getFileName(MimePart part) |
Flags |
MimeMessage.getFlags()
Return a
Flags object containing the flags for
this message. |
Address[] |
MimeMessage.getFrom()
Returns the value of the RFC 822 "From" header fields.
|
java.lang.String[] |
MimeBodyPart.getHeader(java.lang.String name)
Get all the headers for this header_name.
|
java.lang.String[] |
MimeMessage.getHeader(java.lang.String name)
Get all the headers for this header_name.
|
java.lang.String |
MimeBodyPart.getHeader(java.lang.String name,
java.lang.String delimiter)
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
java.lang.String |
MimeMessage.getHeader(java.lang.String name,
java.lang.String delimiter)
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
java.lang.String |
MimePart.getHeader(java.lang.String name,
java.lang.String delimiter)
Get the values of all header fields available for this header,
returned as a single String, with the values separated by the
delimiter.
|
private java.lang.String |
MimeMessage.getHeaderName(Message.RecipientType type) |
java.io.InputStream |
MimeBodyPart.getInputStream()
Return a decoded input stream for this body part's "content".
|
java.io.InputStream |
MimeMessage.getInputStream()
Return a decoded input stream for this Message's "content".
|
int |
MimeBodyPart.getLineCount()
Return the number of lines for the content of this Part.
|
int |
MimeMessage.getLineCount()
Return the number of lines for the content of this message.
|
java.util.Enumeration |
MimeBodyPart.getMatchingHeaderLines(java.lang.String[] names)
Get matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimeMessage.getMatchingHeaderLines(java.lang.String[] names)
Get matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimePart.getMatchingHeaderLines(java.lang.String[] names)
Get matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimeBodyPart.getMatchingHeaders(java.lang.String[] names)
Return matching headers from this Message as an Enumeration of
Header objects.
|
java.util.Enumeration |
MimeMessage.getMatchingHeaders(java.lang.String[] names)
Return matching headers from this Message as an Enumeration of
Header objects.
|
java.lang.String |
MimeMessage.getMessageID()
Returns the value of the "Message-ID" header field.
|
java.util.Enumeration |
MimeBodyPart.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimeMessage.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimePart.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings.
|
java.util.Enumeration |
MimeBodyPart.getNonMatchingHeaders(java.lang.String[] names)
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
java.util.Enumeration |
MimeMessage.getNonMatchingHeaders(java.lang.String[] names)
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
java.lang.String |
MimeMultipart.getPreamble()
Get the preamble text, if any, that appears before the
first body part of this multipart.
|
java.io.InputStream |
MimeBodyPart.getRawInputStream()
Return an InputStream to the raw data with any Content-Transfer-Encoding
intact.
|
java.io.InputStream |
MimeMessage.getRawInputStream()
Return an InputStream to the raw data with any Content-Transfer-Encoding
intact.
|
java.util.Date |
MimeMessage.getReceivedDate()
Returns the Date on this message was received.
|
Address[] |
MimeMessage.getRecipients(Message.RecipientType type)
Returns the recepients specified by the type.
|
Address[] |
MimeMessage.getReplyTo()
Return the value of the RFC 822 "Reply-To" header field.
|
Address |
MimeMessage.getSender()
Returns the value of the RFC 822 "Sender" header field.
|
java.util.Date |
MimeMessage.getSentDate()
Returns the value of the RFC 822 "Date" field.
|
int |
MimeBodyPart.getSize()
Return the size of the content of this body part in bytes.
|
int |
MimeMessage.getSize()
Return the size of the content of this message in bytes.
|
java.lang.String |
MimeMessage.getSubject()
Returns the value of the "Subject" header field.
|
(package private) static void |
MimeBodyPart.invalidateContentHeaders(MimePart part) |
boolean |
MimeMultipart.isComplete()
Return true if the final boundary line for this
multipart was seen.
|
(package private) static boolean |
MimeBodyPart.isMimeType(MimePart part,
java.lang.String mimeType) |
boolean |
MimeBodyPart.isMimeType(java.lang.String mimeType)
Is this Part of the specified MIME type? This method
compares only the
primaryType and
subType . |
boolean |
MimeMessage.isMimeType(java.lang.String mimeType)
Is this Part of the specified MIME type? This method
compares only the
primaryType and
subType . |
boolean |
MimeMessage.isSet(Flags.Flag flag)
Check whether the flag specified in the
flag
argument is set in this message. |
void |
InternetHeaders.load(java.io.InputStream is)
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
protected void |
MimeMultipart.parse()
Parse the InputStream from our DataSource, constructing the
appropriate MimeBodyParts.
|
protected void |
MimeMessage.parse(java.io.InputStream is)
Parse the InputStream setting the
headers and
content fields appropriately. |
boolean |
MimeMultipart.removeBodyPart(BodyPart part)
Remove the specified part from the multipart message.
|
void |
MimeMultipart.removeBodyPart(int index)
Remove the part at specified location (starting from 0).
|
void |
MimeBodyPart.removeHeader(java.lang.String name)
Remove all headers with this name.
|
void |
MimeMessage.removeHeader(java.lang.String name)
Remove all headers with this name.
|
Message |
MimeMessage.reply(boolean replyToAll)
Get a new Message suitable for a reply to this message.
|
Message |
MimeMessage.reply(boolean replyToAll,
boolean setAnswered)
Get a new Message suitable for a reply to this message.
|
(package private) static java.lang.String |
MimeBodyPart.restrictEncoding(MimePart part,
java.lang.String encoding)
Restrict the encoding to values allowed for the
Content-Type of the specified MimePart.
|
void |
MimeMessage.saveChanges()
Updates the appropriate header fields of this message to be
consistent with the message's contents.
|
void |
MimeBodyPart.saveFile(java.io.File file)
Save the contents of this part in the specified file.
|
void |
MimeBodyPart.saveFile(java.lang.String file)
Save the contents of this part in the specified file.
|
private void |
MimeMessage.setAddressHeader(java.lang.String name,
Address[] addresses) |
void |
MimeBodyPart.setContent(Multipart mp)
This method sets the body part's content to a Multipart object.
|
void |
MimeMessage.setContent(Multipart mp)
This method sets the Message's content to a Multipart object.
|
void |
MimeBodyPart.setContent(java.lang.Object o,
java.lang.String type)
A convenience method for setting this body part's content.
|
void |
MimeMessage.setContent(java.lang.Object o,
java.lang.String type)
A convenience method for setting this Message's content.
|
void |
MimeBodyPart.setContentID(java.lang.String cid)
Set the "Content-ID" header field of this body part.
|
void |
MimeMessage.setContentID(java.lang.String cid)
Set the "Content-ID" header field of this Message.
|
(package private) static void |
MimeBodyPart.setContentLanguage(MimePart part,
java.lang.String[] languages) |
void |
MimeBodyPart.setContentLanguage(java.lang.String[] languages)
Set the Content-Language header of this MimePart.
|
void |
MimeMessage.setContentLanguage(java.lang.String[] languages)
Set the "Content-Language" header of this MimePart.
|
void |
MimePart.setContentLanguage(java.lang.String[] languages)
Set the Content-Language header of this MimePart.
|
void |
MimeBodyPart.setContentMD5(java.lang.String md5)
Set the "Content-MD5" header field of this body part.
|
void |
MimeMessage.setContentMD5(java.lang.String md5)
Set the "Content-MD5" header field of this Message.
|
void |
MimePart.setContentMD5(java.lang.String md5)
Set the Content-MD5 of this part.
|
void |
MimeBodyPart.setDataHandler(javax.activation.DataHandler dh)
This method provides the mechanism to set this body part's content.
|
void |
MimeMessage.setDataHandler(javax.activation.DataHandler dh)
This method provides the mechanism to set this part's content.
|
(package private) static void |
MimeBodyPart.setDescription(MimePart part,
java.lang.String description,
java.lang.String charset) |
void |
MimeBodyPart.setDescription(java.lang.String description)
Set the "Content-Description" header field for this body part.
|
void |
MimeMessage.setDescription(java.lang.String description)
Set the "Content-Description" header field for this Message.
|
void |
MimeBodyPart.setDescription(java.lang.String description,
java.lang.String charset)
Set the "Content-Description" header field for this body part.
|
void |
MimeMessage.setDescription(java.lang.String description,
java.lang.String charset)
Set the "Content-Description" header field for this Message.
|
(package private) static void |
MimeBodyPart.setDisposition(MimePart part,
java.lang.String disposition) |
void |
MimeBodyPart.setDisposition(java.lang.String disposition)
Set the "Content-Disposition" header field of this body part.
|
void |
MimeMessage.setDisposition(java.lang.String disposition)
Set the "Content-Disposition" header field of this Message.
|
(package private) static void |
MimeBodyPart.setEncoding(MimePart part,
java.lang.String encoding) |
(package private) static void |
MimeBodyPart.setFileName(MimePart part,
java.lang.String name) |
void |
MimeBodyPart.setFileName(java.lang.String filename)
Set the filename associated with this body part, if possible.
|
void |
MimeMessage.setFileName(java.lang.String filename)
Set the filename associated with this part, if possible.
|
void |
MimeMessage.setFlags(Flags flag,
boolean set)
Set the flags for this message.
|
void |
MimeMessage.setFrom()
Set the RFC 822 "From" header field using the value of the
InternetAddress.getLocalAddress method. |
void |
MimeMessage.setFrom(Address address)
Set the RFC 822 "From" header field.
|
void |
MimeMessage.setFrom(java.lang.String address)
Set the RFC 822 "From" header field.
|
void |
MimeBodyPart.setHeader(java.lang.String name,
java.lang.String value)
Set the value for this header_name.
|
void |
MimeMessage.setHeader(java.lang.String name,
java.lang.String value)
Set the value for this header_name.
|
void |
MimeMultipart.setPreamble(java.lang.String preamble)
Set the preamble text to be included before the first
body part.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
Address[] addresses)
Set the specified recipient type to the given addresses.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
java.lang.String addresses)
Set the specified recipient type to the given addresses.
|
void |
MimeMessage.setReplyTo(Address[] addresses)
Set the RFC 822 "Reply-To" header field.
|
void |
MimeMessage.setSender(Address address)
Set the RFC 822 "Sender" header field.
|
void |
MimeMessage.setSentDate(java.util.Date d)
Set the RFC 822 "Date" header field.
|
void |
MimeMessage.setSubject(java.lang.String subject)
Set the "Subject" header field.
|
void |
MimeMessage.setSubject(java.lang.String subject,
java.lang.String charset)
Set the "Subject" header field.
|
void |
MimeMultipart.setSubType(java.lang.String subtype)
Set the subtype.
|
(package private) static void |
MimeBodyPart.setText(MimePart part,
java.lang.String text,
java.lang.String charset,
java.lang.String subtype) |
void |
MimeBodyPart.setText(java.lang.String text)
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimeMessage.setText(java.lang.String text)
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimePart.setText(java.lang.String text)
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimeBodyPart.setText(java.lang.String text,
java.lang.String charset)
Convenience method that sets the given String as this part's
content, with a MIME type of "text/plain" and the specified
charset.
|
void |
MimeMessage.setText(java.lang.String text,
java.lang.String charset)
Convenience method that sets the given String as this part's
content, with a MIME type of "text/plain" and the specified
charset.
|
void |
MimePart.setText(java.lang.String text,
java.lang.String charset)
Convenience method that sets the given String as this part's
content, with a MIME type of "text/plain" and the specified
charset.
|
void |
MimeBodyPart.setText(java.lang.String text,
java.lang.String charset,
java.lang.String subtype)
Convenience method that sets the given String as this part's
content, with a primary MIME type of "text" and the specified
MIME subtype.
|
void |
MimeMessage.setText(java.lang.String text,
java.lang.String charset,
java.lang.String subtype)
Convenience method that sets the given String as this part's
content, with a primary MIME type of "text" and the specified
MIME subtype.
|
void |
MimePart.setText(java.lang.String text,
java.lang.String charset,
java.lang.String subtype)
Convenience method that sets the given String as this part's
content, with a primary MIME type of "text" and the specified
MIME subtype.
|
protected void |
MimeBodyPart.updateHeaders()
Examine the content of this body part and update the appropriate
MIME headers.
|
protected void |
PreencodedMimeBodyPart.updateHeaders()
Force the
Content-Transfer-Encoding header to use
the encoding that was specified when this object was created. |
protected void |
MimeMessage.updateHeaders()
Called by the
saveChanges method to actually
update the MIME headers. |
protected void |
MimeMultipart.updateHeaders()
Update headers.
|
(package private) static void |
MimeBodyPart.updateHeaders(MimePart part) |
protected void |
MimeMessage.updateMessageID()
Update the Message-ID header.
|
(package private) static void |
MimeBodyPart.writeTo(MimePart part,
java.io.OutputStream os,
java.lang.String[] ignoreList) |
void |
MimeBodyPart.writeTo(java.io.OutputStream os)
Output the body part as an RFC 822 format stream.
|
void |
PreencodedMimeBodyPart.writeTo(java.io.OutputStream os)
Output the body part as an RFC 822 format stream.
|
void |
MimeMessage.writeTo(java.io.OutputStream os)
Output the message as an RFC 822 format stream.
|
void |
MimeMultipart.writeTo(java.io.OutputStream os)
Iterates through all the parts and outputs each MIME part
separated by a boundary.
|
void |
MimeMessage.writeTo(java.io.OutputStream os,
java.lang.String[] ignoreList)
Output the message as an RFC 822 format stream, without
specified headers.
|
Constructor and Description |
---|
InternetHeaders(java.io.InputStream is)
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
MimeBodyPart(java.io.InputStream is)
Constructs a MimeBodyPart by reading and parsing the data from
the specified input stream.
|
MimeBodyPart(InternetHeaders headers,
byte[] content)
Constructs a MimeBodyPart using the given header and
content bytes.
|
MimeMessage(Folder folder,
java.io.InputStream is,
int msgnum)
Constructs a MimeMessage by reading and parsing the data from the
specified MIME InputStream.
|
MimeMessage(Folder folder,
InternetHeaders headers,
byte[] content,
int msgnum)
Constructs a MimeMessage from the given InternetHeaders object
and content.
|
MimeMessage(MimeMessage source)
Constructs a new MimeMessage with content initialized from the
source MimeMessage. |
MimeMessage(Session session,
java.io.InputStream is)
Constructs a MimeMessage by reading and parsing the data from the
specified MIME InputStream.
|
MimeMultipart(BodyPart... parts)
Construct a MimeMultipart object of the default "mixed" subtype,
and with the given body parts.
|
MimeMultipart(javax.activation.DataSource ds)
Constructs a MimeMultipart object and its bodyparts from the
given DataSource.
|
MimeMultipart(java.lang.String subtype,
BodyPart... parts)
Construct a MimeMultipart object of the given subtype
and with the given body parts.
|