|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MessagingException | |
---|---|
gnu.mail.providers.imap | This is a provider for the Internet Message Access Protocol, version 4rev1 (IMAP4rev1), as detailed in RFC 3501. |
gnu.mail.providers.maildir |
This is a provider for Dan Bernstein's Maildir mailbox format,
used primarily by the qmail MTA, and
also by some MUAs such as mutt. |
gnu.mail.providers.mbox |
This is a provider for the UNIX mbox mailbox file format, used
by many 3rd-party MUAs including Netscape, Mozilla, mutt, elm, and pine. |
gnu.mail.providers.nntp | This is a provider for the Network News Transfer Protocol (NNTP), as detailed in RFC 977. |
gnu.mail.providers.pop3 | This is a provider for the Internet Post Office Protocol, version 3 (POP3), as detailed in RFC 1939. |
gnu.mail.providers.smtp | A provider for the Simple Mail Transfer Protocol (SMTP), as detailed in RFC 2821, including support for ESMTP service extensions. |
javax.mail | Classes modelling a mail system. |
javax.mail.internet | Classes modelling Internet mail systems. |
javax.mail.search | Search expressions for executing searches on the messages in a folder. |
Uses of MessagingException in gnu.mail.providers.imap |
---|
Methods in gnu.mail.providers.imap that throw MessagingException | |
---|---|
void |
IMAPFolder.addACL(ACL ace)
Deprecated. this API will probably change incompatibly soon |
void |
IMAPFolder.addRights(ACL ace)
Deprecated. this API will probably change incompatibly soon |
void |
IMAPFolder.appendMessages(Message[] messages)
Appends the specified set of messages to this folder. |
void |
IMAPStore.close()
Closes the connection. |
void |
IMAPFolder.close(boolean expunge)
Closes this folder. |
boolean |
IMAPFolder.create(int type)
Create this folder. |
boolean |
IMAPFolder.delete(boolean flag)
Delete this folder. |
boolean |
IMAPFolder.exists()
Indicates whether this folder exists. |
Message[] |
IMAPFolder.expunge()
Expunges this folder. |
void |
IMAPFolder.fetch(Message[] messages,
FetchProfile fp)
IMAP fetch routine. |
ACL[] |
IMAPFolder.getACL()
Deprecated. this API will probably change incompatibly soon |
java.util.Enumeration |
IMAPMessage.getAllHeaderLines()
|
java.util.Enumeration |
IMAPMessage.getAllHeaders()
|
BodyPart |
IMAPMultipartDataSource.getBodyPart(int index)
Returns the secified sub-part of the multipart. |
java.lang.Object |
IMAPBodyPart.getContent()
|
java.lang.Object |
IMAPMessage.getContent()
|
protected java.io.InputStream |
IMAPBodyPart.getContentStream()
Returns the raw content stream. |
protected java.io.InputStream |
IMAPMessage.getContentStream()
Returns the raw content stream. |
javax.activation.DataHandler |
IMAPBodyPart.getDataHandler()
Returns a data handler for this part's content. |
javax.activation.DataHandler |
IMAPMessage.getDataHandler()
Returns a data handler for this message's content. |
Folder |
IMAPStore.getDefaultFolder()
Returns the root folder. |
int |
IMAPFolder.getDeletedMessageCount()
Returns the number of deleted messages in this folder. |
Flags |
IMAPMessage.getFlags()
|
Folder |
IMAPStore.getFolder(java.lang.String name)
Returns the folder with the specified name. |
Folder |
IMAPFolder.getFolder(java.lang.String name)
Returns a subfolder with the specified name. |
Folder |
IMAPStore.getFolder(URLName urlname)
Returns the folder whose name is the file part of the specified URLName. |
java.lang.String[] |
IMAPMessage.getHeader(java.lang.String name)
Returns the specified header field. |
java.lang.String |
IMAPMessage.getHeader(java.lang.String name,
java.lang.String delimiter)
Returns the specified header field. |
int |
IMAPBodyPart.getLineCount()
Returns the number of text lines in the content of this body part. |
java.util.Enumeration |
IMAPMessage.getMatchingHeaderLines(java.lang.String[] names)
|
java.util.Enumeration |
IMAPMessage.getMatchingHeaders(java.lang.String[] names)
|
Message |
IMAPFolder.getMessage(int msgnum)
Returns the specified message number from this folder. |
Message |
IMAPFolder.getMessageByUID(long uid)
|
int |
IMAPFolder.getMessageCount()
Returns the number of messages in this folder. |
int |
IMAPFolder.getMessageCountByCriteria(java.lang.String criteria)
Convenience method for returning the number of messages in the current folder that match the single criteria. |
Message[] |
IMAPFolder.getMessagesByUID(long[] uids)
|
Message[] |
IMAPFolder.getMessagesByUID(long start,
long end)
|
int |
IMAPFolder.getNewMessageCount()
Returns the number of new messages in this folder. |
java.util.Enumeration |
IMAPMessage.getNonMatchingHeaderLines(java.lang.String[] names)
|
java.util.Enumeration |
IMAPMessage.getNonMatchingHeaders(java.lang.String[] names)
|
Folder |
IMAPFolder.getParent()
Returns the parent folder of this folder. |
Folder[] |
IMAPStore.getPersonalNamespaces()
Returns a list of folders representing personal namespaces. |
Quota[] |
IMAPFolder.getQuota()
Returns the quotas for this folder. |
Quota |
IMAPStore.getQuota(java.lang.String root)
Returns the quota for the specified quota root. |
java.util.Date |
IMAPMessage.getReceivedDate()
Returns the date on which this message was received. |
char |
IMAPFolder.getSeparator()
Returns the path separator charcter. |
Folder[] |
IMAPStore.getSharedNamespaces()
Returns a list of folders representing shared namespaces. |
int |
IMAPBodyPart.getSize()
Returns the content size of this body part in bytes. |
protected javax.net.ssl.TrustManager |
IMAPStore.getTrustManager()
Returns a trust manager used for TLS negotiation. |
int |
IMAPFolder.getType()
Returns the type of this folder. |
long |
IMAPFolder.getUID(Message message)
|
long |
IMAPFolder.getUIDValidity()
|
int |
IMAPFolder.getUnreadMessageCount()
Returns the number of unread messages in this folder. |
Folder[] |
IMAPStore.getUserNamespaces()
Returns a list of folders representing other users' namespaces. |
boolean |
IMAPFolder.hasNewMessages()
Indicates whether this folder contains new messages. |
boolean |
IMAPMessage.isSet(Flags.Flag flag)
|
Folder[] |
IMAPFolder.list(java.lang.String pattern)
Returns the subfolders for this folder. |
Rights |
IMAPFolder.listRights(java.lang.String name)
Deprecated. this API will probably change incompatibly soon |
Folder[] |
IMAPFolder.listSubscribed(java.lang.String pattern)
Returns the subscribed subfolders for this folder. |
Rights |
IMAPFolder.myRights()
Deprecated. this API will probably change incompatibly soon |
void |
IMAPFolder.open(int mode)
Opens this folder. |
protected boolean |
IMAPStore.protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Connects to the IMAP server and authenticates with the specified parameters. |
void |
IMAPFolder.removeACL(java.lang.String name)
Deprecated. this API will probably change incompatibly soon |
void |
IMAPFolder.removeRights(ACL ace)
Deprecated. this API will probably change incompatibly soon |
boolean |
IMAPFolder.renameTo(Folder folder)
Rename this folder. |
Message[] |
IMAPFolder.search(SearchTerm term)
IMAP search function. |
Message[] |
IMAPFolder.search(SearchTerm term,
Message[] msgs)
IMAP search function. |
void |
IMAPMessage.setFlags(Flags flag,
boolean set)
Set the specified flags. |
void |
IMAPStore.setQuota(java.lang.String root,
Quota.Resource[] resources)
Sets the quota resource set for the specified quota root. |
void |
IMAPFolder.setSubscribed(boolean flag)
|
void |
IMAPMessage.writeTo(java.io.OutputStream msgStream)
|
void |
IMAPMessage.writeTo(java.io.OutputStream msgStream,
java.lang.String[] ignoreList)
|
Constructors in gnu.mail.providers.imap that throw MessagingException | |
---|---|
IMAPBodyPart(IMAPMessage message,
IMAPMultipart parent,
java.lang.String section,
InternetHeaders headers,
int size,
int lines)
Called by the IMAPMessage. |
Uses of MessagingException in gnu.mail.providers.maildir |
---|
Methods in gnu.mail.providers.maildir that throw MessagingException | |
---|---|
void |
MaildirFolder.appendMessages(Message[] m)
Appends messages to this folder. |
void |
MaildirFolder.close(boolean expunge)
Closes this folder. |
boolean |
MaildirFolder.create(int type)
Creates this folder in the store. |
boolean |
MaildirFolder.delete(boolean recurse)
Deletes this folder. |
boolean |
MaildirFolder.exists()
Indicates whether this folder exists. |
Message[] |
MaildirFolder.expunge()
Expunges this folder. |
java.util.Enumeration |
MaildirMessage.getAllHeaderLines()
|
java.util.Enumeration |
MaildirMessage.getAllHeaders()
|
protected java.io.InputStream |
MaildirMessage.getContentStream()
|
javax.activation.DataHandler |
MaildirMessage.getDataHandler()
|
Folder |
MaildirStore.getDefaultFolder()
Returns the default folder. |
Folder |
MaildirFolder.getFolder(java.lang.String filename)
Returns the subfolder of this folder with the specified name. |
Folder |
MaildirStore.getFolder(java.lang.String filename)
Returns the folder with the specified filename. |
Folder |
MaildirStore.getFolder(URLName urlname)
Returns the folder specified by the filename of the URLName. |
java.lang.String[] |
MaildirMessage.getHeader(java.lang.String name)
|
java.lang.String |
MaildirMessage.getHeader(java.lang.String name,
java.lang.String delimiter)
|
java.util.Enumeration |
MaildirMessage.getMatchingHeaderLines(java.lang.String[] names)
|
java.util.Enumeration |
MaildirMessage.getMatchingHeaders(java.lang.String[] names)
|
Message |
MaildirFolder.getMessage(int msgnum)
Returns the specified message number from this folder. |
int |
MaildirFolder.getMessageCount()
Returns the number of messages in this folder. |
Message[] |
MaildirFolder.getMessages()
Returns the messages in this folder. |
int |
MaildirFolder.getNewMessageCount()
Returns the number of new messages in this folder. |
java.util.Enumeration |
MaildirMessage.getNonMatchingHeaderLines(java.lang.String[] names)
|
java.util.Enumeration |
MaildirMessage.getNonMatchingHeaders(java.lang.String[] names)
|
Folder |
MaildirFolder.getParent()
Returns the parent folder. |
char |
MaildirFolder.getSeparator()
Returns the separator character. |
int |
MaildirFolder.getType()
Returns the type of this folder. |
URLName |
MaildirFolder.getURLName()
Return a URLName representing this folder. |
boolean |
MaildirFolder.hasNewMessages()
Indicates whether this folder contains new messages. |
Folder[] |
MaildirFolder.list()
Returns the subfolders of this folder. |
Folder[] |
MaildirFolder.list(java.lang.String pattern)
Returns the subfolders of this folder matching the specified pattern. |
void |
MaildirFolder.open(int mode)
Opens this folder. |
protected boolean |
MaildirStore.protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
There isn't a protocol to implement, so this method just returns. |
boolean |
MaildirFolder.renameTo(Folder folder)
Renames this folder. |
void |
MaildirMessage.setFlags(Flags flag,
boolean set)
Set the specified flags(reflected in the info field). |
Uses of MessagingException in gnu.mail.providers.mbox |
---|
Methods in gnu.mail.providers.mbox that throw MessagingException | |
---|---|
void |
MboxFolder.appendMessages(Message[] m)
Appends messages to this folder. |
void |
MboxFolder.close(boolean expunge)
Closes this folder. |
boolean |
MboxFolder.create(int type)
Creates this folder in the store. |
boolean |
MboxFolder.delete(boolean recurse)
Deletes this folder. |
boolean |
MboxFolder.exists()
Indicates whether this folder exists. |
Message[] |
MboxFolder.expunge()
Expunges this folder. |
protected java.lang.String |
MboxFolder.fromLine(MboxMessage message)
Returns the From_ line for the specified mbox message. |
Folder |
MboxStore.getDefaultFolder()
Returns the default folder. |
Folder |
MboxStore.getFolder(java.lang.String name)
Returns the folder with the specified filename. |
Folder |
MboxFolder.getFolder(java.lang.String name)
Returns the subfolder of this folder with the specified name. |
Folder |
MboxStore.getFolder(URLName urlname)
Returns the folder specified by the filename of the URLName. |
Message |
MboxFolder.getMessage(int msgnum)
Returns the specified message number from this folder. |
int |
MboxFolder.getMessageCount()
Returns the number of messages in this folder. |
Message[] |
MboxFolder.getMessages()
Returns the messages in this folder. |
Folder |
MboxFolder.getParent()
Returns the parent folder. |
char |
MboxFolder.getSeparator()
Returns the separator character. |
int |
MboxFolder.getType()
Returns the type of this folder. |
URLName |
MboxFolder.getURLName()
Return a URLName representing this folder. |
boolean |
MboxFolder.hasNewMessages()
Indicates whether this folder contains new messages. |
Folder[] |
MboxFolder.list()
Returns the subfolders of this folder. |
Folder[] |
MboxFolder.list(java.lang.String pattern)
Returns the subfolders of this folder matching the specified pattern. |
void |
MboxFolder.open(int mode)
Opens this folder. |
protected boolean |
MboxStore.protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
There isn't a protocol to implement, so this method just returns. |
boolean |
MboxFolder.renameTo(Folder folder)
Renames this folder. |
void |
MboxMessage.setFlags(Flags flag,
boolean set)
Set the specified flags(reflected in the Status header). |
protected void |
MboxMessage.updateHeaders()
Updates the status header from the current flags. |
Constructors in gnu.mail.providers.mbox that throw MessagingException | |
---|---|
MboxMessage(MboxFolder folder,
MimeMessage message,
int msgnum)
Creates a Mbox message. |
|
MboxMessage(MboxFolder folder,
java.lang.String fromLine,
java.io.InputStream in,
int msgnum)
Creates a Mbox message. |
Uses of MessagingException in gnu.mail.providers.nntp |
---|
Methods in gnu.mail.providers.nntp that throw MessagingException | |
---|---|
void |
NNTPFolder.appendMessages(Message[] messages)
NNTP servers are read-only. |
void |
NNTPRootFolder.appendMessages(Message[] messages)
|
void |
NNTPTransport.close()
Close the connection. |
void |
NNTPStore.close()
Close the connection. |
void |
NNTPFolder.close(boolean expunge)
This method has no particular meaning in NNTP. |
void |
NNTPRootFolder.close(boolean expunge)
|
boolean |
NNTPFolder.create(int type)
NNTP servers are read-only. |
boolean |
NNTPRootFolder.create(int type)
|
boolean |
NNTPFolder.delete(boolean recurse)
NNTP servers are read-only. |
boolean |
NNTPRootFolder.delete(boolean flag)
|
boolean |
NNTPFolder.exists()
Indicates whether the newsgroup is present on the server. |
boolean |
NNTPRootFolder.exists()
|
Message[] |
NNTPFolder.expunge()
NNTP servers are read-only. |
Message[] |
NNTPRootFolder.expunge()
|
void |
NNTPFolder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch. |
java.util.Enumeration |
NNTPMessage.getAllHeaderLines()
|
java.util.Enumeration |
NNTPMessage.getAllHeaders()
|
java.io.InputStream |
NNTPMessage.getContentStream()
|
Folder |
NNTPStore.getDefaultFolder()
Returns the folder representing the "root" namespace. |
Folder |
NNTPFolder.getFolder(java.lang.String name)
This folder type does not contain other folders. |
Folder |
NNTPStore.getFolder(java.lang.String name)
Returns a folder by name. |
Folder |
NNTPRootFolder.getFolder(java.lang.String name)
Returns a new Folder object associated with the specified name. |
Folder |
NNTPStore.getFolder(URLName url)
Returns the folder whose name corresponds to the file part
of the specified URL. |
java.lang.String[] |
NNTPMessage.getHeader(java.lang.String name)
|
java.lang.String |
NNTPMessage.getHeader(java.lang.String name,
java.lang.String delimiter)
|
int |
NNTPMessage.getLineCount()
|
java.util.Enumeration |
NNTPMessage.getMatchingHeaderLines(java.lang.String[] names)
|
java.util.Enumeration |
NNTPMessage.getMatchingHeaders(java.lang.String[] names)
|
Message |
NNTPFolder.getMessage(int msgnum)
Returns the article corresponding to the specified article number. |
Message |
NNTPRootFolder.getMessage(int msgnum)
|
int |
NNTPFolder.getMessageCount()
Returns the number of articles in this newsgroup. |
int |
NNTPRootFolder.getMessageCount()
|
Message[] |
NNTPFolder.getMessages()
Returns all articles in this group. |
java.util.Enumeration |
NNTPMessage.getNonMatchingHeaderLines(java.lang.String[] names)
|
java.util.Enumeration |
NNTPMessage.getNonMatchingHeaders(java.lang.String[] names)
|
Folder |
NNTPFolder.getParent()
This implementation uses a flat namespace, so the parent of any NNTPFolder is the NNTP root folder. |
Folder |
NNTPRootFolder.getParent()
|
char |
NNTPFolder.getSeparator()
If we move away from a flat namespace, this might be useful. |
char |
NNTPRootFolder.getSeparator()
As we're dealing with a flat namespace, the value of this is irrelevant. |
int |
NNTPMessage.getSize()
|
int |
NNTPFolder.getType()
Returns the type of this folder. |
boolean |
NNTPFolder.hasNewMessages()
Indicates whether there are new articles in this newsgroup. |
boolean |
NNTPRootFolder.hasNewMessages()
|
Folder[] |
NNTPRootFolder.list(ListFolderListener listener)
Returns the list of folders matching the specified pattern. |
Folder[] |
NNTPFolder.list(java.lang.String pattern)
This folder type does not contain other folders. |
Folder[] |
NNTPRootFolder.list(java.lang.String pattern)
Returns the list of folders matching the specified pattern. |
Folder[] |
NNTPRootFolder.list(java.lang.String pattern,
ListFolderListener listener)
Returns the list of folders matching the specified pattern. |
Folder[] |
NNTPFolder.listSubscribed(java.lang.String pattern)
This folder type does not contain other folders. |
Folder[] |
NNTPRootFolder.listSubscribed(java.lang.String pattern)
Returns the list of subscribed folders matching the specified pattern. |
void |
NNTPFolder.open(int mode)
This method has no particular meaning in NNTP. |
void |
NNTPRootFolder.open(int mode)
|
protected boolean |
NNTPTransport.protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Performs the protocol connection. |
protected boolean |
NNTPStore.protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Performs the protocol connection. |
boolean |
NNTPFolder.renameTo(Folder folder)
NNTP servers are read-only. |
boolean |
NNTPRootFolder.renameTo(Folder folder)
|
void |
NNTPMessage.saveChanges()
|
void |
NNTPTransport.sendMessage(Message message,
Address[] addresses)
Post an article. |
void |
NNTPMessage.setFlags(Flags flag,
boolean set)
|
void |
NNTPFolder.setSubscribed(boolean flag)
Subscribes or unsubscribes to this newsgroup. |
void |
NNTPRootFolder.setSubscribed(boolean flag)
This folder is always "subscribed". |
Uses of MessagingException in gnu.mail.providers.pop3 |
---|
Methods in gnu.mail.providers.pop3 that throw MessagingException | |
---|---|
void |
POP3Folder.appendMessages(Message[] messages)
You can't append messages to a POP3 folder. |
void |
POP3Store.close()
Closes the connection. |
void |
POP3Folder.close(boolean expunge)
Closes this folder. |
boolean |
POP3Folder.create(int i)
POP3 folders can't be created, deleted, or renamed. |
boolean |
POP3Folder.delete(boolean flag)
POP3 folders can't be created, deleted, or renamed. |
boolean |
POP3Folder.exists()
Indicates whether this folder exists. |
Message[] |
POP3Folder.expunge()
Expunges this folder. |
void |
POP3Folder.fetch(Message[] messages,
FetchProfile fp)
Fetches headers and/or content for the specified messages. |
java.util.Enumeration |
POP3Message.getAllHeaderLines()
Causes the headers to be read. |
java.util.Enumeration |
POP3Message.getAllHeaders()
Causes the headers to be read. |
protected java.io.InputStream |
POP3Message.getContentStream()
Causes the content to be read in. |
javax.activation.DataHandler |
POP3Message.getDataHandler()
Causes the content to be read in. |
Folder |
POP3Store.getDefaultFolder()
Returns the root folder. |
Folder |
POP3Folder.getFolder(java.lang.String s)
POP3 folders can't contain subfolders. |
Folder |
POP3Store.getFolder(java.lang.String s)
Returns the folder with the specified name. |
Folder |
POP3Store.getFolder(URLName urlname)
Returns the folder whose name is the file part of the specified URLName. |
java.lang.String[] |
POP3Message.getHeader(java.lang.String name)
Causes the headers to be read. |
java.lang.String |
POP3Message.getHeader(java.lang.String name,
java.lang.String delimiter)
Causes the headers to be read. |
java.util.Enumeration |
POP3Message.getMatchingHeaderLines(java.lang.String[] names)
Causes the headers to be read. |
java.util.Enumeration |
POP3Message.getMatchingHeaders(java.lang.String[] names)
Causes the headers to be read. |
Message |
POP3Folder.getMessage(int msgnum)
Returns the specified message from this folder. |
int |
POP3Folder.getMessageCount()
Returns the number of messages in this folder. |
java.util.Enumeration |
POP3Message.getNonMatchingHeaderLines(java.lang.String[] names)
Causes the headers to be read. |
java.util.Enumeration |
POP3Message.getNonMatchingHeaders(java.lang.String[] names)
Causes the headers to be read. |
Folder |
POP3Folder.getParent()
POP3 folders can't have parents. |
char |
POP3Folder.getSeparator()
Returns the path separator charcter. |
int |
POP3Message.getSize()
Gets the size of the message. |
protected javax.net.ssl.TrustManager |
POP3Store.getTrustManager()
Returns a trust manager used for TLS negotiation. |
int |
POP3Folder.getType()
Returns the type of this folder. |
java.lang.String |
POP3Message.getUID()
Returns the unique ID for this message. |
java.lang.String |
POP3Folder.getUID(Message message)
Returns the unique ID for the given message, or null if
not available. |
boolean |
POP3Folder.hasNewMessages()
Indicates whether this folder contains new messages. |
Folder[] |
POP3Folder.list()
Returns the subfolders for this folder. |
Folder[] |
POP3Folder.list(java.lang.String pattern)
Returns the subfolders for this folder. |
void |
POP3Folder.open(int mode)
Opens this folder. |
protected boolean |
POP3Store.protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Connects to the POP3 server and authenticates with the specified parameters. |
boolean |
POP3Folder.renameTo(Folder folder)
POP3 folders can't be created, deleted, or renamed. |
void |
POP3Message.setFlags(Flags flags,
boolean set)
Set flags (but only DELETED is supported) add or remove the message from the folder deleted message list. |
void |
POP3Message.writeTo(java.io.OutputStream msgStream)
|
void |
POP3Message.writeTo(java.io.OutputStream msgStream,
java.lang.String[] ignoreList)
|
Uses of MessagingException in gnu.mail.providers.smtp |
---|
Methods in gnu.mail.providers.smtp that throw MessagingException | |
---|---|
void |
SMTPTransport.close()
Close this transport. |
java.lang.String |
SMTPTransport.getGreeting()
Returns the greeting banner. |
protected boolean |
SMTPTransport.protocolConnect(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Connects to the SMTP server. |
void |
SMTPTransport.sendMessage(Message message,
Address[] addresses)
Send the specified message to the server. |
Uses of MessagingException in javax.mail |
---|
Subclasses of MessagingException in javax.mail | |
---|---|
class |
AuthenticationFailedException
An exception thrown to indicate that authentication failed during a service's connect method. |
class |
FolderClosedException
An exception thrown when a method is invoked on a closed folder or one of its messages. |
class |
FolderNotFoundException
An exception thrown when a method is invoked on a nonexistent folder. |
class |
IllegalWriteException
An exception thrown when a modification of a read-only property is attempted. |
class |
MessageRemovedException
An exception thrown when an invalid method is invoked on an expunged message. |
class |
MethodNotSupportedException
An exception thrown when an operation is not supported by the implementation. |
class |
NoSuchProviderException
An exception thrown on an attempt to instantiate a provider that doesn't exist. |
class |
ReadOnlyFolderException
An exception thrown when an attempt is made to open a folder in read-write mode when the folder can only be opened read-only. |
class |
SendFailedException
An exception thrown when a message cannot be sent. |
class |
StoreClosedException
An exception thrown when a method is invoked on a message or folder whose owner store has been closed for some reason. |
Methods in javax.mail that throw MessagingException | |
---|---|
void |
Multipart.addBodyPart(BodyPart part)
Adds a body part to this multipart. |
void |
Multipart.addBodyPart(BodyPart part,
int index)
Inserts a body part at the specified index. |
abstract void |
Message.addFrom(Address[] addresses)
Adds addresses to the identity of the person sending this message. |
void |
Part.addHeader(java.lang.String name,
java.lang.String value)
Adds the specified value to the existing values for this header name. |
void |
Message.addRecipient(Message.RecipientType type,
Address address)
Adds the recipient address of the given type. |
abstract void |
Message.addRecipients(Message.RecipientType type,
Address[] addresses)
Adds the recipient addresses of the given type. |
abstract void |
Folder.appendMessages(Message[] msgs)
Appends the specified messages to this folder. |
void |
Service.close()
Closes this service, terminating any underlying connections. |
abstract void |
Folder.close(boolean expunge)
Closes this folder. |
void |
Service.connect()
Connects to this service. |
void |
Service.connect(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
Connects to this service using the specified details. |
void |
Service.connect(java.lang.String user,
java.lang.String password)
Connects to this service. |
void |
Service.connect(java.lang.String host,
java.lang.String user,
java.lang.String password)
Connects to this service using the specified details. |
void |
Folder.copyMessages(Message[] msgs,
Folder folder)
Copies the specified messages into another folder. |
abstract boolean |
Folder.create(int type)
Create this folder in the store. |
abstract boolean |
Folder.delete(boolean recurse)
Deletes this folder. |
abstract boolean |
Folder.exists()
Indicates whether this folder exists in the Store. |
abstract Message[] |
Folder.expunge()
Expunges (permanently removing) all the messages marked DELETED. |
void |
Folder.fetch(Message[] msgs,
FetchProfile fp)
Fetches the items specified in the given fetch profile for the specified messages. |
java.util.Enumeration |
Part.getAllHeaders()
Returns all the headers from this part. |
Address[] |
Message.getAllRecipients()
Returns all the recipient addresses in the message. |
BodyPart |
MultipartDataSource.getBodyPart(int index)
Returns the specified body part. |
BodyPart |
Multipart.getBodyPart(int index)
Get the specified body part. |
java.lang.Object |
Part.getContent()
Returns the content of this part as a Java object. |
java.lang.String |
Part.getContentType()
Returns the content-type of the content of this part, or null if the content-type could not be determined. |
int |
Multipart.getCount()
Returns the number of enclosed body parts. |
javax.activation.DataHandler |
Part.getDataHandler()
Returns a data handler for the content of this part. |
abstract Folder |
Store.getDefaultFolder()
Returns a folder that represents the root of the primary namespace presented to the user by this store. |
int |
Folder.getDeletedMessageCount()
Returns the number of deleted messages in this folder. |
java.lang.String |
Part.getDescription()
Returns the description of this part. |
java.lang.String |
Part.getDisposition()
Returns the disposition of this part. |
java.lang.String |
Part.getFileName()
Returns the filename associated with this part, if available. |
abstract Flags |
Message.getFlags()
Returns the flags for this message. |
abstract Folder |
Store.getFolder(java.lang.String name)
Returns the folder with the given name. |
abstract Folder |
Folder.getFolder(java.lang.String name)
Return a folder corresponding to the given name. |
abstract Folder |
Store.getFolder(URLName url)
Returns the folder 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 identity of the person(s) who ordered the sending of this message. |
java.lang.String[] |
Part.getHeader(java.lang.String name)
Returns all the values for the specified header name, or null if no such headers are available. |
java.io.InputStream |
Part.getInputStream()
Returns an input stream for reading the content of this part. |
int |
Part.getLineCount()
Returns the number of lines in the content of this part, or -1 if the number cannot be determined. |
java.util.Enumeration |
Part.getMatchingHeaders(java.lang.String[] names)
Returns the matching headers from this part. |
abstract Message |
Folder.getMessage(int msgnum)
Returns the message with the given number. |
Message |
UIDFolder.getMessageByUID(long uid)
Returns the message corresponding to the given UID, or null if no such message exists. |
abstract int |
Folder.getMessageCount()
Returns the number of messages in this folder. |
Message[] |
Folder.getMessages()
Returns all messages in this folder. |
Message[] |
Folder.getMessages(int[] msgnums)
Returns the messages for the specified message numbers. |
Message[] |
Folder.getMessages(int start,
int end)
Returns the messages in the given range (inclusive). |
Message[] |
UIDFolder.getMessagesByUID(long[] uids)
Returns the messages specified by the given UIDs. |
Message[] |
UIDFolder.getMessagesByUID(long start,
long end)
Returns the messages in the given range. |
int |
Folder.getNewMessageCount()
Returns the number of new messages in this folder. |
java.util.Enumeration |
Part.getNonMatchingHeaders(java.lang.String[] names)
Returns the non-matching headers from this part. |
abstract Folder |
Folder.getParent()
Returns the parent folder of this folder, or null
if this folder is the root of a folder hierarchy. |
Folder[] |
Store.getPersonalNamespaces()
Returns the personal namespaces for the authenticated user. |
Quota[] |
QuotaAwareStore.getQuota(java.lang.String root)
Returns the quotas for the given quota root. |
abstract java.util.Date |
Message.getReceivedDate()
Returns the date this message was received. |
abstract Address[] |
Message.getRecipients(Message.RecipientType type)
Returns all the recipient addresses of the specified type. |
Address[] |
Message.getReplyTo()
Returns the addresses to which replies should be directed. |
abstract java.util.Date |
Message.getSentDate()
Returns the date this message was sent. |
abstract char |
Folder.getSeparator()
Return the hierarchy delimiter character for this folder. |
Folder[] |
Store.getSharedNamespaces()
Returns the shared namespaces. |
int |
Part.getSize()
Returns the size of the content of this part in bytes, or -1 if the size cannot be determined. |
abstract java.lang.String |
Message.getSubject()
Returns the subject of this message. |
abstract int |
Folder.getType()
Returns the type of this Folder, i.e. |
long |
UIDFolder.getUID(Message message)
Returns the UID for the specified message. |
long |
UIDFolder.getUIDValidity()
Returns the UIDValidity value associated with this folder. |
int |
Folder.getUnreadMessageCount()
Returns the number of unread messages in this folder. |
URLName |
Folder.getURLName()
Return a URLName that can be used as a handle to access this folder. |
Folder[] |
Store.getUserNamespaces(java.lang.String user)
Returns the personal namespaces for the specified user. |
abstract boolean |
Folder.hasNewMessages()
Indicates whether this folder has new messages. |
boolean |
Part.isMimeType(java.lang.String mimeType)
Is this part of the specified MIME type? This method compares only the primary type and subtype. |
boolean |
Message.isSet(Flags.Flag flag)
Indicates whether the specified flag is set in this message. |
Folder[] |
Folder.list()
Returns the list of subfolders of this folder. |
abstract Folder[] |
Folder.list(java.lang.String pattern)
Returns a list of subfolders matching the specified pattern. |
Folder[] |
Folder.listSubscribed()
Returns the list of subscribed subfolders of this folder. |
Folder[] |
Folder.listSubscribed(java.lang.String pattern)
Returns a list of subscribed subfolders matching the specified pattern. |
boolean |
Message.match(SearchTerm term)
Indicates whether the specified search term applies to this message. |
abstract void |
Folder.open(int mode)
Opens this folder. |
protected boolean |
Service.protocolConnect(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
Provider implementation for a service. |
boolean |
Multipart.removeBodyPart(BodyPart part)
Removes the specified body part from this multipart. |
void |
Multipart.removeBodyPart(int index)
Removes the body part at the specified index. |
void |
Part.removeHeader(java.lang.String name)
Removes all headers of the specified name. |
abstract boolean |
Folder.renameTo(Folder folder)
Renames this folder. |
abstract Message |
Message.reply(boolean replyToAll)
Returns a new message suitable for a reply to this message. |
abstract void |
Message.saveChanges()
Save any changes made to this message into its underlying store, if the message was obtained from a folder. |
Message[] |
Folder.search(SearchTerm term)
Searches this folder for messages matching the specified search term. |
Message[] |
Folder.search(SearchTerm term,
Message[] msgs)
Searches the given messages for those matching the specified search term. |
static void |
Transport.send(Message msg)
Sends the specified message. |
static void |
Transport.send(Message msg,
Address[] addresses)
Sends the message to the specified addresses, ignoring any recipients specified in the message itself. |
abstract void |
Transport.sendMessage(Message msg,
Address[] addresses)
Sends the message to the specified list of addresses. |
void |
Part.setContent(Multipart mp)
Sets the multipart content of this part. |
void |
Part.setContent(java.lang.Object obj,
java.lang.String type)
Sets the content of this part using the specified object. |
void |
Part.setDataHandler(javax.activation.DataHandler dh)
Sets the content of this part using the specified data handler. |
void |
Part.setDescription(java.lang.String description)
Sets the description of this part. |
void |
Part.setDisposition(java.lang.String disposition)
Sets the disposition of this part. |
void |
Part.setFileName(java.lang.String filename)
Sets the filename associated with this part. |
void |
Message.setFlag(Flags.Flag flag,
boolean set)
Sets the specified flag on this message to the given value. |
abstract void |
Message.setFlags(Flags flag,
boolean set)
Sets the specified flags on this message to the given value. |
void |
Folder.setFlags(int[] msgnums,
Flags flag,
boolean value)
Sets the specified flags on each of the specified messages. |
void |
Folder.setFlags(int start,
int end,
Flags flag,
boolean value)
Set the specified flags on the given range of messages (inclusive). |
void |
Folder.setFlags(Message[] msgs,
Flags flag,
boolean value)
Sets the specified flags on each specified message. |
abstract void |
Message.setFrom()
Sets the identity of the person sending this message, as obtained from the property "mail.user". |
abstract void |
Message.setFrom(Address address)
Sets the identity of the person sending this message. |
void |
Part.setHeader(java.lang.String name,
java.lang.String value)
Sets the value for the specified header name. |
protected void |
Multipart.setMultipartDataSource(MultipartDataSource mp)
Configures this multipart from the given data source. |
void |
QuotaAwareStore.setQuota(Quota quota)
Sets the quotas for the quota root specified in the quota argument. |
void |
Message.setRecipient(Message.RecipientType type,
Address address)
Sets the recipient address of the specified type. |
abstract void |
Message.setRecipients(Message.RecipientType type,
Address[] addresses)
Sets the recipient addresses of the specified type. |
void |
Message.setReplyTo(Address[] addresses)
Sets the addresses to which replies should be directed. |
abstract void |
Message.setSentDate(java.util.Date date)
Sets the date this message was sent. |
abstract void |
Message.setSubject(java.lang.String subject)
Sets the subject of this message. |
void |
Folder.setSubscribed(boolean flag)
Subscribe to or unsubscribe from this folder. |
void |
Part.setText(java.lang.String text)
Sets the textual content of this part, using a MIME type of text/plain . |
void |
Part.writeTo(java.io.OutputStream os)
Writes this part to the specified byte stream. |
abstract void |
Multipart.writeTo(java.io.OutputStream os)
Writes this multipart to the specified byte stream. |
Uses of MessagingException in javax.mail.internet |
---|
Subclasses of MessagingException in javax.mail.internet | |
---|---|
class |
AddressException
An exception thrown when an incorrectly formatted address is encountered. |
class |
ParseException
An exception thrown to indicate an error parsing RFC822 or MIME headers. |
Methods in javax.mail.internet that throw MessagingException | |
---|---|
void |
MimeMessage.addFrom(Address[] addresses)
Adds the specified addresses to From header field. |
void |
MimeMessage.addHeader(java.lang.String name,
java.lang.String value)
Adds the specified header. |
void |
MimeBodyPart.addHeader(java.lang.String name,
java.lang.String value)
Adds the specified header. |
void |
MimePart.addHeaderLine(java.lang.String line)
Adds an RFC822 header-line. |
void |
MimeMessage.addHeaderLine(java.lang.String line)
Adds an RFC 822 header-line to this message. |
void |
MimeBodyPart.addHeaderLine(java.lang.String line)
Adds an RFC 822 header-line to this part. |
void |
MimeMessage.addRecipients(Message.RecipientType type,
Address[] addresses)
Adds the given addresses to the recipients of the specified type. |
void |
MimeMessage.addRecipients(Message.RecipientType type,
java.lang.String addresses)
Adds the given addresses to the recipients of the specified type. |
void |
MimeBodyPart.attachFile(java.io.File file)
Use the specified file as the content for this part. |
void |
MimeBodyPart.attachFile(java.lang.String file)
Use the specified file as the content for this part. |
protected InternetHeaders |
MimeMultipart.createInternetHeaders(java.io.InputStream is)
Creates headers from the specified input stream. |
protected InternetHeaders |
MimeMessage.createInternetHeaders(java.io.InputStream is)
Creates the headers from the given input stream. |
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(java.io.InputStream is)
Creates a MIME body part from the specified input stream. |
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InternetHeaders headers,
byte[] content)
Creates a MIME body part object from the given headers and byte content. |
protected MimeMessage |
MimeMessage.createMimeMessage(Session session)
Creates a new MIME message. |
static java.io.InputStream |
MimeUtility.decode(java.io.InputStream is,
java.lang.String encoding)
Decodes the given input stream. |
static java.io.OutputStream |
MimeUtility.encode(java.io.OutputStream os,
java.lang.String encoding)
Encodes the given output stream. |
static java.io.OutputStream |
MimeUtility.encode(java.io.OutputStream os,
java.lang.String encoding,
java.lang.String filename)
Encodes the given output stream. |
java.util.Enumeration |
MimePart.getAllHeaderLines()
Returns all the header-lines. |
java.util.Enumeration |
MimeMessage.getAllHeaderLines()
Returns all the header-lines. |
java.util.Enumeration |
MimeBodyPart.getAllHeaderLines()
Returns all the header-lines. |
java.util.Enumeration |
MimeMessage.getAllHeaders()
Returns all the headers. |
java.util.Enumeration |
MimeBodyPart.getAllHeaders()
Returns all the headers. |
Address[] |
MimeMessage.getAllRecipients()
Returns all the recipients. |
BodyPart |
MimeMultipart.getBodyPart(int index)
Returns the specified body part. |
BodyPart |
MimeMultipart.getBodyPart(java.lang.String CID)
Returns the body part identified by the given Content-ID (CID). |
java.lang.Object |
MimeMessage.getContent()
Returns this message's content as a Java object. |
java.lang.Object |
MimeBodyPart.getContent()
Returns this part's content as a Java object. |
java.lang.String |
MimePart.getContentID()
Returns the value of the Content-ID header field of this part. |
java.lang.String |
MimeMessage.getContentID()
Returns the value of the Content-ID header field. |
java.lang.String |
MimeBodyPart.getContentID()
Returns the value of the Content-ID header field. |
java.lang.String[] |
MimePart.getContentLanguage()
Returns the languages specified in the Content-Language header of this part, as defined by RFC 1766. |
java.lang.String[] |
MimeMessage.getContentLanguage()
Returns the languages specified in the Content-Language header field of this message, as defined by RFC 1766. |
java.lang.String[] |
MimeBodyPart.getContentLanguage()
Returns the languages specified in the Content-Language header of this part, as defined by RFC 1766. |
java.lang.String |
MimePart.getContentMD5()
Returns the value of the Content-MD5 header field of this part. |
java.lang.String |
MimeMessage.getContentMD5()
Returns the value of the Content-MD5 header field. |
java.lang.String |
MimeBodyPart.getContentMD5()
Returns the value of the Content-MD5 header field. |
protected java.io.InputStream |
MimeMessage.getContentStream()
Returns the unencoded bytes of the content. |
protected java.io.InputStream |
MimeBodyPart.getContentStream()
Returns the unencoded bytes of the content. |
java.lang.String |
MimeMessage.getContentType()
Returns the value of the RFC 822 Content-Type header field, or "text/plain" if the header is not available. |
java.lang.String |
MimeBodyPart.getContentType()
Returns the value of the RFC 822 Content-Type header field, or "text/plain" if the header is not available. |
int |
MimeMultipart.getCount()
Returns the number of component body parts. |
javax.activation.DataHandler |
MimeMessage.getDataHandler()
Returns a data handler for accessing this message's content. |
javax.activation.DataHandler |
MimeBodyPart.getDataHandler()
Returns a data handler for accessing this part's content. |
java.lang.String |
MimeMessage.getDescription()
Returns the Content-Description header field of this message. |
java.lang.String |
MimeBodyPart.getDescription()
Returns the Content-Description header field of this part. |
java.lang.String |
MimeMessage.getDisposition()
Returns the value of the RFC 822 Content-Disposition header field, or null if the header is not available. |
java.lang.String |
MimeBodyPart.getDisposition()
Returns the value of the RFC 822 Content-Disposition header field, or null if the header is not available. |
java.lang.String |
MimePart.getEncoding()
Returns the value of the Content-Transfer-Encoding header field of this part. |
java.lang.String |
MimeMessage.getEncoding()
Returns the value of the Content-Transfer-Encoding header field. |
java.lang.String |
MimeBodyPart.getEncoding()
Returns the value of the Content-Transfer-Encoding header field. |
java.lang.String |
MimeMessage.getFileName()
Returns the filename associated with this message. |
java.lang.String |
MimeBodyPart.getFileName()
Returns the filename associated with this body part. |
Flags |
MimeMessage.getFlags()
Returns the flags for this message. |
Address[] |
MimeMessage.getFrom()
Returns the value of the RFC 822 From header field. |
java.lang.String[] |
MimeMessage.getHeader(java.lang.String name)
Returns all the values for the specified header name. |
java.lang.String[] |
MimeBodyPart.getHeader(java.lang.String name)
Returns all the values for the specified header name. |
java.lang.String |
MimePart.getHeader(java.lang.String header_name,
java.lang.String delimiter)
Returns the values of all header fields for the specified name, returned as a single String with the values separated by the given delimiter. |
java.lang.String |
MimeMessage.getHeader(java.lang.String name,
java.lang.String delimiter)
Returns all the values for the specified header name as a single string, with headers separated by the given delimiter. |
java.lang.String |
MimeBodyPart.getHeader(java.lang.String name,
java.lang.String delimiter)
Returns all the values for the specified header name as a single string, with headers separated by the given delimiter. |
java.io.InputStream |
MimeMessage.getInputStream()
Returns a decoded input stream for this message's content. |
java.io.InputStream |
MimeBodyPart.getInputStream()
Returns a decoded input stream for this part's content. |
int |
MimeMessage.getLineCount()
Returns the number of lines in the content of this message, or -1 if this number cannot be determined. |
int |
MimeBodyPart.getLineCount()
Returns the number of lines in the content of this body part, or -1 if this number cannot be determined. |
java.util.Enumeration |
MimePart.getMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines with any of the given names. |
java.util.Enumeration |
MimeMessage.getMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines with any of the given names. |
java.util.Enumeration |
MimeBodyPart.getMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines with any of the given names. |
java.util.Enumeration |
MimeMessage.getMatchingHeaders(java.lang.String[] names)
Returns all the headers with any of the given names. |
java.util.Enumeration |
MimeBodyPart.getMatchingHeaders(java.lang.String[] names)
Returns all the headers with any of the given names. |
java.lang.String |
MimeMessage.getMessageID()
Returns the value of the Message-ID header field. |
java.util.Enumeration |
MimePart.getNonMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines without any of the given names. |
java.util.Enumeration |
MimeMessage.getNonMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines without any of the given names. |
java.util.Enumeration |
MimeBodyPart.getNonMatchingHeaderLines(java.lang.String[] names)
Returns all the header-lines without any of the given names. |
java.util.Enumeration |
MimeMessage.getNonMatchingHeaders(java.lang.String[] names)
Returns all the headers without any of the given names. |
java.util.Enumeration |
MimeBodyPart.getNonMatchingHeaders(java.lang.String[] names)
Returns all the headers without any of the given names. |
java.lang.String |
MimeMultipart.getPreamble()
Returns the preamble text (if any) before the first boundary line in this multipart's body. |
java.io.InputStream |
MimeMessage.getRawInputStream()
Returns the unencoded bytes of the content without applying any content transfer encoding. |
java.io.InputStream |
MimeBodyPart.getRawInputStream()
Returns the unencoded bytes of the content without applying any content transfer decoding. |
java.util.Date |
MimeMessage.getReceivedDate()
Returns the date on which this message was received. |
Address[] |
MimeMessage.getRecipients(Message.RecipientType type)
Returns the recipients of the given type. |
Address[] |
MimeMessage.getReplyTo()
Returns 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 |
MimeMessage.getSize()
Returns the size of the content of this message in bytes, or -1 if the size cannot be determined. |
int |
MimeBodyPart.getSize()
Returns the size of the content of this body part in bytes, or -1 if the size cannot be determined. |
java.lang.String |
MimeMessage.getSubject()
Returns the value of the Subject header field. |
boolean |
MimeMultipart.isComplete()
Indicates whether the final boundary line for this multipart has been parsed. |
boolean |
MimeMessage.isMimeType(java.lang.String mimeType)
Indicates whether this message is of the specified MIME type. |
boolean |
MimeBodyPart.isMimeType(java.lang.String mimeType)
Indicates whether this part is of the specified MIME type. |
boolean |
MimeMessage.isSet(Flags.Flag flag)
Indicates whether the specified flag is set in this message. |
void |
InternetHeaders.load(java.io.InputStream is)
Parses the specified RFC 822 message stream, storing the headers in this InternetHeaders. |
protected void |
MimeMultipart.parse()
Parses the body parts from this multipart's data source. |
protected void |
MimeMessage.parse(java.io.InputStream is)
Parses the given input stream, setting the headers and content fields appropriately. |
void |
MimeMessage.removeHeader(java.lang.String name)
Removes all headers with the specified name. |
void |
MimeBodyPart.removeHeader(java.lang.String name)
Removes all headers with the specified name. |
Message |
MimeMessage.reply(boolean replyToAll)
Returns a new message suitable for a reply to this message. |
void |
MimeMessage.saveChanges()
Saves any changes to this message. |
void |
MimeBodyPart.saveFile(java.io.File file)
Saves the content of this part to the specified file. |
void |
MimeBodyPart.saveFile(java.lang.String file)
Saves the content of this part to the specified file. |
void |
MimeMessage.setContent(Multipart mp)
Sets the content of this message to be the specified multipart. |
void |
MimeBodyPart.setContent(Multipart mp)
Sets the content of this part to be the specified multipart. |
void |
MimeMessage.setContent(java.lang.Object o,
java.lang.String type)
Sets the content of this message using the specified Java object and MIME type. |
void |
MimeBodyPart.setContent(java.lang.Object o,
java.lang.String type)
Sets the content of this part using the specified Java object and MIME type. |
void |
MimeMessage.setContentID(java.lang.String cid)
Sets the Content-ID header field of this message. |
void |
MimeBodyPart.setContentID(java.lang.String cid)
Sets the Content-ID header field of this part. |
void |
MimePart.setContentLanguage(java.lang.String[] languages)
Sets the Content-Language header of this part. |
void |
MimeMessage.setContentLanguage(java.lang.String[] languages)
Sets the Content-Language header of this message. |
void |
MimeBodyPart.setContentLanguage(java.lang.String[] languages)
Sets the Content-Language header of this part. |
void |
MimePart.setContentMD5(java.lang.String md5)
Sets the Content-MD5 header value for this part. |
void |
MimeMessage.setContentMD5(java.lang.String md5)
Sets the Content-MD5 header field of this message. |
void |
MimeBodyPart.setContentMD5(java.lang.String md5)
Sets the Content-MD5 header field of this part. |
void |
MimeMessage.setDataHandler(javax.activation.DataHandler datahandler)
Sets the content of this part using the specified data handler. |
void |
MimeBodyPart.setDataHandler(javax.activation.DataHandler dh)
Sets the content of this part using the specified data handler. |
void |
MimeMessage.setDescription(java.lang.String description)
Sets the Content-Description header field for this message. |
void |
MimeBodyPart.setDescription(java.lang.String description)
Sets the Content-Description header field for this part. |
void |
MimeMessage.setDescription(java.lang.String description,
java.lang.String charset)
Sets the Content-Description header field for this message. |
void |
MimeBodyPart.setDescription(java.lang.String description,
java.lang.String charset)
Sets the Content-Description header field for this part. |
void |
MimeMessage.setDisposition(java.lang.String disposition)
Sets the Content-Disposition header field of this message. |
void |
MimeBodyPart.setDisposition(java.lang.String disposition)
Sets the Content-Disposition header field of this part. |
void |
MimeMessage.setFileName(java.lang.String filename)
Sets the filename associated with this part. |
void |
MimeBodyPart.setFileName(java.lang.String filename)
Sets the filename associated with this body part. |
void |
MimeMessage.setFlags(Flags flag,
boolean set)
Sets the flags for this message. |
void |
MimeMessage.setFrom()
Sets the RFC 822 From header field using the value of the InternetAddress.getLocalAddress method. |
void |
MimeMessage.setFrom(Address address)
Sets the RFC 822 From header field. |
void |
MimeMessage.setHeader(java.lang.String name,
java.lang.String value)
Sets the specified header. |
void |
MimeBodyPart.setHeader(java.lang.String name,
java.lang.String value)
Sets the specified header. |
void |
MimeMultipart.setPreamble(java.lang.String preamble)
Sets the preamble text to be emitted before the first boundary line. |
void |
MimeMessage.setRecipients(Message.RecipientType type,
Address[] addresses)
Sets the recipients of the given type. |
void |
MimeMessage.setRecipients(Message.RecipientType type,
java.lang.String addresses)
Sets the recipients of the given type. |
void |
MimeMessage.setReplyTo(Address[] addresses)
Sets the RFC 822 Reply-To header field. |
void |
MimeMessage.setSender(Address address)
Sets the RFC 822 Sender header field. |
void |
MimeMessage.setSentDate(java.util.Date date)
Sets the RFC 822 Date header field. |
void |
MimeMessage.setSubject(java.lang.String subject)
Sets the Subject header field. |
void |
MimeMessage.setSubject(java.lang.String subject,
java.lang.String charset)
Sets the Subject header field. |
void |
MimeMultipart.setSubType(java.lang.String subtype)
Sets the subtype. |
void |
MimePart.setText(java.lang.String text)
Sets the content of this message using the specified text, and with a MIME type of "text/plain". |
void |
MimeMessage.setText(java.lang.String text)
Sets the content of this message using the specified text, and with a MIME type of "text/plain". |
void |
MimeBodyPart.setText(java.lang.String text)
Sets the content of this part using the specified text, and with a MIME type of "text/plain". |
void |
MimePart.setText(java.lang.String text,
java.lang.String charset)
Sets the content of this message using the specified text, and with a MIME type of "text/plain". |
void |
MimeMessage.setText(java.lang.String text,
java.lang.String charset)
Sets the content of this message using the specified text, and with a MIME type of "text/plain". |
void |
MimeBodyPart.setText(java.lang.String text,
java.lang.String charset)
Sets the content of this part using the specified text, and with a MIME type of "text/plain". |
void |
MimePart.setText(java.lang.String text,
java.lang.String charset,
java.lang.String subtype)
Sets the content of this message using the specified text, and with a text MIME type of the specified subtype. |
void |
MimeMessage.setText(java.lang.String text,
java.lang.String charset,
java.lang.String subtype)
Sets the content of this message using the specified text, and with a text MIME type of the specified subtype. |
void |
MimeBodyPart.setText(java.lang.String text,
java.lang.String charset,
java.lang.String subtype)
Sets the content of this part using the specified text, and with a text MIME type of the specified subtype. |
protected void |
MimeMultipart.updateHeaders()
Updates the headers of this part to be consistent with its content. |
protected void |
MimeMessage.updateHeaders()
Updates the headers of this part, based on the content. |
protected void |
MimeBodyPart.updateHeaders()
Updates the headers of this part, based on the content. |
protected void |
MimeMessage.updateMessageId()
Updates the Message-ID header. |
void |
MimeMultipart.writeTo(java.io.OutputStream os)
Writes this multipart to the specified output stream. |
void |
MimeMessage.writeTo(java.io.OutputStream os)
Writes this message to the specified stream in RFC 822 format. |
void |
MimeBodyPart.writeTo(java.io.OutputStream os)
Writes this body part to the specified stream in RFC 822 format. |
void |
MimeMessage.writeTo(java.io.OutputStream os,
java.lang.String[] ignoreList)
Writes this message to the specified stream in RFC 822 format, without the specified headers. |
Constructors in javax.mail.internet that throw MessagingException | |
---|---|
InternetHeaders(java.io.InputStream is)
Constructor with an RFC 822 message stream. |
|
MimeBodyPart(java.io.InputStream is)
Constructor with an input stream. |
|
MimeBodyPart(InternetHeaders headers,
byte[] content)
Constructor with headers and byte content. |
|
MimeMessage(Folder folder,
java.io.InputStream is,
int msgnum)
Constructor with a parent folder, message number, and RFC 822 input stream. |
|
MimeMessage(Folder folder,
InternetHeaders headers,
byte[] content,
int msgnum)
Constructor with a parent folder, message number, headers and byte content. |
|
MimeMessage(MimeMessage source)
Constructor with an existing message. |
|
MimeMessage(Session session,
java.io.InputStream is)
Constructor with an input stream contining an RFC 822 message. |
|
MimeMultipart(javax.activation.DataSource ds)
Constructor with a given data source. |
Uses of MessagingException in javax.mail.search |
---|
Subclasses of MessagingException in javax.mail.search | |
---|---|
class |
SearchException
An exception thrown to indicate that a search expression could not be handled by the store implementation. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |