|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MessagingException | |
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. |
javax.mail | Classes modeling a mail system. |
javax.mail.internet | Classes specific to Internet mail systems. |
javax.mail.search | Message search terms for the JavaMail API. |
Uses of MessagingException in com.sun.mail.imap |
Methods in com.sun.mail.imap that throw MessagingException | |
Folder |
IMAPFolder.getParent()
Get this folder's parent. |
boolean |
IMAPFolder.exists()
Check whether this folder really exists on the server. |
Folder[] |
IMAPFolder.list(java.lang.String pattern)
List all subfolders matching the specified pattern. |
Folder[] |
IMAPFolder.listSubscribed(java.lang.String pattern)
List all subscribed subfolders matching the specified pattern. |
char |
IMAPFolder.getSeparator()
Get the separator character. |
int |
IMAPFolder.getType()
Get the type of this folder. |
void |
IMAPFolder.setSubscribed(boolean subscribe)
Subscribe/Unsubscribe this folder. |
boolean |
IMAPFolder.create(int type)
Create this folder, with the specified type. |
boolean |
IMAPFolder.hasNewMessages()
Check whether this folder has new messages. |
Folder |
IMAPFolder.getFolder(java.lang.String name)
Get the named subfolder. |
boolean |
IMAPFolder.delete(boolean recurse)
Delete this folder. |
boolean |
IMAPFolder.renameTo(Folder f)
Rename this folder. |
void |
IMAPFolder.open(int mode)
Open this folder in the given mode. |
void |
IMAPFolder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch attributes, based on the given FetchProfile. |
void |
IMAPFolder.setFlags(Message[] msgs,
Flags flag,
boolean value)
Set the specified flags for the given array of messages. |
void |
IMAPFolder.close(boolean expunge)
Close this folder. |
int |
IMAPFolder.getMessageCount()
Get the total message count. |
int |
IMAPFolder.getNewMessageCount()
Get the new message count. |
int |
IMAPFolder.getUnreadMessageCount()
Get the unread message count. |
int |
IMAPFolder.getDeletedMessageCount()
Get the deleted message count. |
Message |
IMAPFolder.getMessage(int msgnum)
Get the specified message. |
void |
IMAPFolder.appendMessages(Message[] msgs)
Append the given messages into this folder. |
void |
IMAPFolder.copyMessages(Message[] msgs,
Folder folder)
Copy the specified messages from this folder, to the specified destination. |
Message[] |
IMAPFolder.expunge()
Expunge. |
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. |
long |
IMAPFolder.getUIDValidity()
Returns the UIDValidity for this folder |
Message |
IMAPFolder.getMessageByUID(long uid)
Get the Message corresponding to the given UID. |
Message[] |
IMAPFolder.getMessagesByUID(long start,
long end)
Get the Messages specified by the given range. |
Message[] |
IMAPFolder.getMessagesByUID(long[] uids)
Get the Messages specified by the given array. |
long |
IMAPFolder.getUID(Message message)
Get the UID for the specified message. |
Quota[] |
IMAPFolder.getQuota()
Get the quotas for the quotaroot associated with this folder. |
void |
IMAPFolder.setQuota(Quota quota)
Set the quotas for the quotaroot specified in the quota argument. |
ACL[] |
IMAPFolder.getACL()
Get the access control list entries for this folder. |
void |
IMAPFolder.addACL(ACL acl)
Add an access control list entry to the access control list for this folder. |
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 |
IMAPFolder.addRights(ACL acl)
Add the rights specified in the ACL to the entry for the identifier specified in the ACL. |
void |
IMAPFolder.removeRights(ACL acl)
Remove the rights specified in the ACL from the entry for the identifier specified in the ACL. |
Rights[] |
IMAPFolder.listRights(java.lang.String name)
Get all the rights that may be allowed to the given identifier. |
Rights |
IMAPFolder.myRights()
Get the rights allowed to the currently authenticated user. |
java.lang.Object |
IMAPFolder.doCommand(IMAPFolder.ProtocolCommand cmd)
Execute a user-supplied IMAP command. |
protected boolean |
IMAPStore.protocolConnect(java.lang.String host,
int pport,
java.lang.String user,
java.lang.String password)
Implementation of protocolConnect() |
void |
IMAPStore.close()
Close this Store. |
Folder |
IMAPStore.getDefaultFolder()
Get the default folder, representing the root of this user's namespace. |
Folder |
IMAPStore.getFolder(java.lang.String name)
Get named folder. |
Folder |
IMAPStore.getFolder(URLName url)
Get named folder. |
Folder[] |
IMAPStore.getPersonalNamespaces()
Using the IMAP NAMESPACE command (RFC 2342), return a set of folders representing the Personal namespaces. |
Folder[] |
IMAPStore.getUserNamespaces(java.lang.String user)
Using the IMAP NAMESPACE command (RFC 2342), return a set of folders representing the User's namespaces. |
Folder[] |
IMAPStore.getSharedNamespaces()
Using the IMAP NAMESPACE command (RFC 2342), return a set of folders representing the Shared namespaces. |
Quota[] |
IMAPStore.getQuota(java.lang.String root)
Get the quotas for the named quota root. |
void |
IMAPStore.setQuota(Quota quota)
Set the quotas for the quota root specified in the quota argument. |
Uses of MessagingException in com.sun.mail.pop3 |
Methods in com.sun.mail.pop3 that throw MessagingException | |
Folder[] |
POP3Folder.list(java.lang.String pattern)
Always throws MessagingException because no POP3 folders
can contain subfolders. |
boolean |
POP3Folder.create(int type)
Always returns false ; the POP3 protocol doesn't
support creating folders. |
boolean |
POP3Folder.hasNewMessages()
Always returns false ; the POP3 protocol provides
no way to determine when a new message arrives. |
Folder |
POP3Folder.getFolder(java.lang.String name)
Always throws MessagingException because no POP3 folders
can contain subfolders. |
boolean |
POP3Folder.delete(boolean recurse)
Always throws MethodNotSupportedException
because the POP3 protocol doesn't allow the INBOX to
be deleted. |
boolean |
POP3Folder.renameTo(Folder f)
Always throws MethodNotSupportedException
because the POP3 protocol doesn't support multiple folders. |
void |
POP3Folder.open(int mode)
Throws FolderNotFoundException unless this
folder is named "INBOX". |
void |
POP3Folder.close(boolean expunge)
|
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. |
Message |
POP3Folder.getMessage(int msgno)
|
protected POP3Message |
POP3Folder.createMessage(Folder f,
int msgno)
|
void |
POP3Folder.appendMessages(Message[] msgs)
Always throws MethodNotSupportedException
because the POP3 protocol doesn't support appending messages. |
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. |
void |
POP3Folder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch information about POP3 messages. |
java.lang.String |
POP3Folder.getUID(Message msg)
Return the unique ID string for this message, or null if not available. |
protected boolean |
POP3Store.protocolConnect(java.lang.String host,
int portNum,
java.lang.String user,
java.lang.String passwd)
|
void |
POP3Store.close()
|
Folder |
POP3Store.getDefaultFolder()
|
Folder |
POP3Store.getFolder(java.lang.String name)
Only the name "INBOX" is supported. |
Folder |
POP3Store.getFolder(URLName url)
|
void |
POP3Message.setFlags(Flags newFlags,
boolean set)
Set the specified flags on this message to the specified value. |
int |
POP3Message.getSize()
Return the size of the content of this message in bytes. |
protected java.io.InputStream |
POP3Message.getContentStream()
Produce the raw bytes of the content. |
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. |
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. |
void |
POP3Message.setHeader(java.lang.String name,
java.lang.String value)
Set the value for this header_name. |
void |
POP3Message.addHeader(java.lang.String name,
java.lang.String value)
Add this value to the existing values for this header_name. |
void |
POP3Message.removeHeader(java.lang.String name)
Remove all headers with this name. |
java.util.Enumeration |
POP3Message.getAllHeaders()
Return all the headers from this Message as an enumeration of Header objects. |
java.util.Enumeration |
POP3Message.getMatchingHeaders(java.lang.String[] names)
Return matching headers from this Message as an Enumeration of Header objects. |
java.util.Enumeration |
POP3Message.getNonMatchingHeaders(java.lang.String[] names)
Return non-matching headers from this Message as an Enumeration of Header objects. |
void |
POP3Message.addHeaderLine(java.lang.String line)
Add a raw RFC822 header-line. |
java.util.Enumeration |
POP3Message.getAllHeaderLines()
Get all header lines as an Enumeration of Strings. |
java.util.Enumeration |
POP3Message.getMatchingHeaderLines(java.lang.String[] names)
Get matching header lines as an Enumeration of Strings. |
java.util.Enumeration |
POP3Message.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings. |
void |
POP3Message.saveChanges()
POP3 message can't be changed. |
Constructors in com.sun.mail.pop3 that throw MessagingException | |
POP3Message(Folder folder,
int msgno)
|
Uses of MessagingException in com.sun.mail.smtp |
Methods in com.sun.mail.smtp that throw MessagingException | |
void |
SMTPTransport.connect()
|
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. |
void |
SMTPTransport.sendMessage(Message message,
Address[] addresses)
Send the Message to the specified list of addresses. |
void |
SMTPTransport.close()
Close the server and terminate its connection |
Constructors in com.sun.mail.smtp that throw MessagingException | |
SMTPMessage(Session session,
java.io.InputStream is)
Constructs an SMTPMessage by reading and parsing the data from the specified MIME InputStream. |
|
SMTPMessage(MimeMessage source)
Constructs a new SMTPMessage with content initialized from the source MimeMessage. |
Uses of MessagingException in javax.mail |
Subclasses of MessagingException in javax.mail | |
class |
AuthenticationFailedException
This exception is thrown when the connect method on a Store or Transport object fails due to an authentication failure (e.g., bad user name or password). |
class |
FolderClosedException
This exception is thrown when a method is invoked on a Messaging object and the Folder that owns that object has died due to some reason. |
class |
FolderNotFoundException
This exception is thrown by Folder methods, when those methods are invoked on a non existent folder. |
class |
IllegalWriteException
The exception thrown when a write is attempted on a read-only attribute of any Messaging object. |
class |
MessageRemovedException
The exception thrown when an invalid method is invoked on an expunged Message. |
class |
MethodNotSupportedException
The exception thrown when a method is not supported by the implementation |
class |
NoSuchProviderException
This exception is thrown when Session attempts to instantiate a Provider that doesn't exist. |
class |
ReadOnlyFolderException
This exception is thrown when an attempt is made to open a folder read-write access when the folder is marked read-only. |
class |
SendFailedException
This exception is thrown when the message cannot be sent. |
class |
StoreClosedException
This exception is thrown when a method is invoked on a Messaging object and the Store that owns that object has died due to some reason. |
Methods in javax.mail that throw MessagingException | |
BodyPart |
MultipartDataSource.getBodyPart(int index)
Get the specified Part. |
int |
Part.getSize()
Return the size of the content of this part in bytes. |
int |
Part.getLineCount()
Return the number of lines in the content of this part. |
java.lang.String |
Part.getContentType()
Returns the Content-Type of the content of this part. |
boolean |
Part.isMimeType(java.lang.String mimeType)
Is this Part of the specified MIME type? This method compares only the primaryType and
subType . |
java.lang.String |
Part.getDisposition()
Return the disposition of this part. |
void |
Part.setDisposition(java.lang.String disposition)
Set the disposition of this part. |
java.lang.String |
Part.getDescription()
Return a description String for this part. |
void |
Part.setDescription(java.lang.String description)
Set a description String for this part. |
java.lang.String |
Part.getFileName()
Get the filename associated with this part, if possible. |
void |
Part.setFileName(java.lang.String filename)
Set the filename associated with this part, if possible. |
java.io.InputStream |
Part.getInputStream()
Return an input stream for this part's "content". |
javax.activation.DataHandler |
Part.getDataHandler()
Return a DataHandler for the content within this part. |
java.lang.Object |
Part.getContent()
Return the content as a Java object. |
void |
Part.setDataHandler(javax.activation.DataHandler dh)
This method provides the mechanism to set this part's content. |
void |
Part.setContent(java.lang.Object obj,
java.lang.String type)
A convenience method for setting this part's content. |
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". |
void |
Part.setContent(Multipart mp)
This method sets the given Multipart object as this message's content. |
void |
Part.writeTo(java.io.OutputStream os)
Output a bytestream for this Part. |
java.lang.String[] |
Part.getHeader(java.lang.String header_name)
Get all the headers for this header name. |
void |
Part.setHeader(java.lang.String header_name,
java.lang.String header_value)
Set the value for this header_name. |
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 |
Part.removeHeader(java.lang.String header_name)
Remove all headers with this name. |
java.util.Enumeration |
Part.getAllHeaders()
Return all the headers from this part as an Enumeration of Header objects. |
java.util.Enumeration |
Part.getMatchingHeaders(java.lang.String[] header_names)
Return matching headers from this part as an Enumeration of Header objects. |
java.util.Enumeration |
Part.getNonMatchingHeaders(java.lang.String[] header_names)
Return non-matching headers from this envelope as an Enumeration of Header objects. |
abstract Address[] |
Message.getFrom()
Returns the "From" attribute. |
abstract void |
Message.setFrom()
Set the "From" attribute in this Message. |
abstract void |
Message.setFrom(Address address)
Set the "From" attribute in this Message. |
abstract void |
Message.addFrom(Address[] addresses)
Add these addresses to the existing "From" attribute |
abstract Address[] |
Message.getRecipients(Message.RecipientType type)
Get all the recipient addresses of the given type. |
Address[] |
Message.getAllRecipients()
Get all the recipient addresses for the message. |
abstract void |
Message.setRecipients(Message.RecipientType type,
Address[] addresses)
Set the recipient addresses. |
void |
Message.setRecipient(Message.RecipientType type,
Address address)
Set the recipient address. |
abstract void |
Message.addRecipients(Message.RecipientType type,
Address[] addresses)
Add these recipient addresses to the existing ones of the given type. |
void |
Message.addRecipient(Message.RecipientType type,
Address address)
Add this recipient address to the existing ones of the given type. |
Address[] |
Message.getReplyTo()
Get the addresses to which replies should be directed. |
void |
Message.setReplyTo(Address[] addresses)
Set the addresses to which replies should be directed. |
abstract java.lang.String |
Message.getSubject()
Get the subject of this message. |
abstract void |
Message.setSubject(java.lang.String subject)
Set the subject of this message. |
abstract java.util.Date |
Message.getSentDate()
Get the date this message was sent. |
abstract void |
Message.setSentDate(java.util.Date date)
Set the sent date of this message. |
abstract java.util.Date |
Message.getReceivedDate()
Get the date this message was received. |
abstract Flags |
Message.getFlags()
Returns a Flags object containing the flags for
this message. |
boolean |
Message.isSet(Flags.Flag flag)
Check whether the flag specified in the flag
argument is set in this message. |
abstract void |
Message.setFlags(Flags flag,
boolean set)
Set the specified flags on this message to the specified value. |
void |
Message.setFlag(Flags.Flag flag,
boolean set)
Set the specified flag on this message to the specified value. |
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. |
boolean |
Message.match(SearchTerm term)
Apply the specified Search criterion to this message. |
void |
Service.connect()
A generic connect method that takes no parameters. |
void |
Service.connect(java.lang.String host,
java.lang.String user,
java.lang.String password)
Connect to the specified address. |
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. |
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. |
void |
Service.close()
Close this service and terminate its connection. |
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. |
abstract void |
Transport.sendMessage(Message msg,
Address[] addresses)
Send the Message to the specified list of addresses. |
abstract Folder |
Store.getDefaultFolder()
Returns a Folder object that represents the 'root' of the default namespace presented to the user by the Store. |
abstract Folder |
Store.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[] |
Store.getPersonalNamespaces()
Return a set of folders representing the personal namespaces for the current user. |
Folder[] |
Store.getUserNamespaces(java.lang.String user)
Return a set of folders representing the namespaces for user . |
Folder[] |
Store.getSharedNamespaces()
Return a set of folders representing the shared namespaces. |
protected void |
Multipart.setMultipartDataSource(MultipartDataSource mp)
Setup this Multipart object from the given MultipartDataSource. |
int |
Multipart.getCount()
Return the number of enclosed BodyPart objects. |
BodyPart |
Multipart.getBodyPart(int index)
Get the specified Part. |
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 |
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 |
Multipart.writeTo(java.io.OutputStream os)
Output an appropriately encoded bytestream to the given OutputStream. |
URLName |
Folder.getURLName()
Return a URLName representing this folder. |
abstract Folder |
Folder.getParent()
Returns the parent folder of this folder. |
abstract boolean |
Folder.exists()
Tests if this folder physically exists on the Store. |
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(java.lang.String pattern)
Returns a list of subscribed Folders belonging to this Folder's namespace that match the specified pattern. |
Folder[] |
Folder.list()
Convenience method that returns the list of folders under this Folder. |
Folder[] |
Folder.listSubscribed()
Convenience method that returns the list of subscribed folders under this Folder. |
abstract char |
Folder.getSeparator()
Return the delimiter character that separates this Folder's pathname from the names of immediate subfolders. |
abstract int |
Folder.getType()
Returns the type of this Folder, that is, whether this folder can hold messages or subfolders or both. |
abstract boolean |
Folder.create(int type)
Create this folder on the Store. |
void |
Folder.setSubscribed(boolean subscribe)
Subscribe or unsubscribe this Folder. |
abstract boolean |
Folder.hasNewMessages()
Returns true if this Folder has new messages since the last time this indication was reset. |
abstract Folder |
Folder.getFolder(java.lang.String name)
Return the Folder object corresponding to the given name. |
abstract boolean |
Folder.delete(boolean recurse)
Delete this Folder. |
abstract boolean |
Folder.renameTo(Folder f)
Rename this Folder. |
abstract void |
Folder.open(int mode)
Open this Folder. |
abstract void |
Folder.close(boolean expunge)
Close this Folder. |
abstract int |
Folder.getMessageCount()
Get total number of messages in this Folder. |
int |
Folder.getNewMessageCount()
Get the number of new messages in this Folder. |
int |
Folder.getUnreadMessageCount()
Get the total number of unread messages in this Folder. |
int |
Folder.getDeletedMessageCount()
Get the number of deleted messages in this Folder. |
abstract Message |
Folder.getMessage(int msgnum)
Get the Message object corresponding to the given message number. |
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[] |
Folder.getMessages(int[] msgnums)
Get the Message objects for message numbers specified in the array. |
Message[] |
Folder.getMessages()
Get all Message objects from this Folder. |
abstract void |
Folder.appendMessages(Message[] msgs)
Append given Messages to this folder. |
void |
Folder.fetch(Message[] msgs,
FetchProfile fp)
Prefetch the items specified in the FetchProfile for the given Messages. |
void |
Folder.setFlags(Message[] msgs,
Flags flag,
boolean value)
Set the specified flags on the messages specified 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(int[] msgnums,
Flags flag,
boolean value)
Set the specified flags on the messages whose message numbers are in the array. |
void |
Folder.copyMessages(Message[] msgs,
Folder folder)
Copy the specified Messages from this Folder into another Folder. |
abstract Message[] |
Folder.expunge()
Expunge (permanently remove) messages marked DELETED. |
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. |
long |
UIDFolder.getUIDValidity()
Returns the UIDValidity value associated with this folder. |
Message |
UIDFolder.getMessageByUID(long uid)
Get the Message corresponding to the given UID. |
Message[] |
UIDFolder.getMessagesByUID(long start,
long end)
Get the Messages specified by the given range. |
Message[] |
UIDFolder.getMessagesByUID(long[] uids)
Get the Messages specified by the given array of UIDs. |
long |
UIDFolder.getUID(Message message)
Get the UID for the specified message. |
Folder |
Session.getFolder(URLName url)
Get a closed Folder object for the given URLName. |
Uses of MessagingException in javax.mail.internet |
Subclasses of MessagingException in javax.mail.internet | |
class |
AddressException
The exception thrown when a wrongly formatted address is encountered. |
class |
ParseException
The exception thrown due to an error in parsing RFC822 or MIME headers |
Methods in javax.mail.internet that throw MessagingException | |
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. |
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. |
void |
MimePart.addHeaderLine(java.lang.String line)
Add a raw RFC822 header-line. |
java.util.Enumeration |
MimePart.getAllHeaderLines()
Get all 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 |
MimePart.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings. |
java.lang.String |
MimePart.getEncoding()
Get the transfer encoding of this part. |
java.lang.String |
MimePart.getContentID()
Get the Content-ID of this part. |
java.lang.String |
MimePart.getContentMD5()
Get the Content-MD5 digest of this part. |
void |
MimePart.setContentMD5(java.lang.String md5)
Set the Content-MD5 of this part. |
java.lang.String[] |
MimePart.getContentLanguage()
Get the language tags specified in the Content-Language header of this MimePart. |
void |
MimePart.setContentLanguage(java.lang.String[] languages)
Set the Content-Language header of this MimePart. |
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 |
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. |
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. |
protected void |
MimeMessage.parse(java.io.InputStream is)
Parse the InputStream setting the headers and
content fields appropriately. |
Address[] |
MimeMessage.getFrom()
Returns the value of the RFC 822 "From" header fields. |
void |
MimeMessage.setFrom(Address address)
Set the RFC 822 "From" header field. |
void |
MimeMessage.setFrom()
Set the RFC 822 "From" header field using the value of the InternetAddress.getLocalAddress method. |
void |
MimeMessage.addFrom(Address[] addresses)
Add the specified addresses to the existing "From" field. |
Address |
MimeMessage.getSender()
Returns the value of the RFC 822 "Sender" header field. |
void |
MimeMessage.setSender(Address address)
Set the RFC 822 "Sender" header field. |
Address[] |
MimeMessage.getRecipients(Message.RecipientType type)
Returns the recepients specified by the type. |
Address[] |
MimeMessage.getAllRecipients()
Get all the recipient addresses for the message. |
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.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. |
Address[] |
MimeMessage.getReplyTo()
Return the value of the RFC 822 "Reply-To" header field. |
void |
MimeMessage.setReplyTo(Address[] addresses)
Set the RFC 822 "Reply-To" header field. |
java.lang.String |
MimeMessage.getSubject()
Returns the value of the "Subject" 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. |
java.util.Date |
MimeMessage.getSentDate()
Returns the value of the RFC 822 "Date" field. |
void |
MimeMessage.setSentDate(java.util.Date d)
Set the RFC 822 "Date" header field. |
java.util.Date |
MimeMessage.getReceivedDate()
Returns the Date on this message was received. |
int |
MimeMessage.getSize()
Return the size of the content of this message in bytes. |
int |
MimeMessage.getLineCount()
Return the number of lines for the content of this message. |
java.lang.String |
MimeMessage.getContentType()
Returns the value of the RFC 822 "Content-Type" header field. |
boolean |
MimeMessage.isMimeType(java.lang.String mimeType)
Is this Part of the specified MIME type? This method compares only the primaryType and
subType . |
java.lang.String |
MimeMessage.getDisposition()
Returns the value of the "Content-Disposition" header field. |
void |
MimeMessage.setDisposition(java.lang.String disposition)
Set the "Content-Disposition" header field of this Message. |
java.lang.String |
MimeMessage.getEncoding()
Returns the content transfer encoding from the "Content-Transfer-Encoding" header field. |
java.lang.String |
MimeMessage.getContentID()
Returns the value of the "Content-ID" header field. |
void |
MimeMessage.setContentID(java.lang.String cid)
Set the "Content-ID" header field of this Message. |
java.lang.String |
MimeMessage.getContentMD5()
Return the value of the "Content-MD5" header field. |
void |
MimeMessage.setContentMD5(java.lang.String md5)
Set the "Content-MD5" header field of this Message. |
java.lang.String |
MimeMessage.getDescription()
Returns the "Content-Description" header field of this Message. |
void |
MimeMessage.setDescription(java.lang.String description)
Set the "Content-Description" header field for this Message. |
void |
MimeMessage.setDescription(java.lang.String description,
java.lang.String charset)
Set the "Content-Description" header field for this Message. |
java.lang.String[] |
MimeMessage.getContentLanguage()
Get the languages specified in the "Content-Language" header field of this message. |
void |
MimeMessage.setContentLanguage(java.lang.String[] languages)
Set the "Content-Language" header of this MimePart. |
java.lang.String |
MimeMessage.getMessageID()
Returns the value of the "Message-ID" header field. |
java.lang.String |
MimeMessage.getFileName()
Get the filename associated with this Message. |
void |
MimeMessage.setFileName(java.lang.String filename)
Set the filename associated with this part, if possible. |
java.io.InputStream |
MimeMessage.getInputStream()
Return a decoded input stream for this Message's "content". |
protected java.io.InputStream |
MimeMessage.getContentStream()
Produce the raw bytes of the content. |
java.io.InputStream |
MimeMessage.getRawInputStream()
Return an InputStream to the raw data with any Content-Transfer-Encoding intact. |
javax.activation.DataHandler |
MimeMessage.getDataHandler()
Return a DataHandler for this Message's content. |
java.lang.Object |
MimeMessage.getContent()
Return the content as a Java object. |
void |
MimeMessage.setDataHandler(javax.activation.DataHandler dh)
This method provides the mechanism to set this part's content. |
void |
MimeMessage.setContent(java.lang.Object o,
java.lang.String type)
A convenience method for setting this Message's content. |
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 |
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 |
MimeMessage.setContent(Multipart mp)
This method sets the Message's content to a Multipart object. |
Message |
MimeMessage.reply(boolean replyToAll)
Get a new Message suitable for a reply to this message. |
void |
MimeMessage.writeTo(java.io.OutputStream os)
Output the message as an RFC 822 format stream. |
void |
MimeMessage.writeTo(java.io.OutputStream os,
java.lang.String[] ignoreList)
Output the message as an RFC 822 format stream, without specified headers. |
java.lang.String[] |
MimeMessage.getHeader(java.lang.String name)
Get all the headers for this header_name. |
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. |
void |
MimeMessage.setHeader(java.lang.String name,
java.lang.String value)
Set the value 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 |
MimeMessage.removeHeader(java.lang.String name)
Remove all headers with this name. |
java.util.Enumeration |
MimeMessage.getAllHeaders()
Return all the 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.util.Enumeration |
MimeMessage.getNonMatchingHeaders(java.lang.String[] names)
Return non-matching headers from this Message as an Enumeration of Header objects. |
void |
MimeMessage.addHeaderLine(java.lang.String line)
Add a raw RFC 822 header-line. |
java.util.Enumeration |
MimeMessage.getAllHeaderLines()
Get all 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 |
MimeMessage.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings. |
Flags |
MimeMessage.getFlags()
Return a Flags object containing the flags for
this message. |
boolean |
MimeMessage.isSet(Flags.Flag flag)
Check whether the flag specified in the flag
argument is set in this message. |
void |
MimeMessage.setFlags(Flags flag,
boolean set)
Set the flags for this message. |
void |
MimeMessage.saveChanges()
Updates the appropriate header fields of this message to be consistent with the message's contents. |
protected void |
MimeMessage.updateHeaders()
Called by the saveChanges method to actually
update the MIME headers. |
protected InternetHeaders |
MimeMessage.createInternetHeaders(java.io.InputStream is)
Create and return an InternetHeaders object that loads the headers from the given InputStream. |
void |
MimeMultipart.setSubType(java.lang.String subtype)
Set the subtype. |
int |
MimeMultipart.getCount()
Return the number of enclosed BodyPart objects. |
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). |
protected void |
MimeMultipart.updateHeaders()
Update headers. |
void |
MimeMultipart.writeTo(java.io.OutputStream os)
Iterates through all the parts and outputs each Mime part separated by a boundary. |
protected void |
MimeMultipart.parse()
Parse the InputStream from our DataSource, constructing the appropriate MimeBodyParts. |
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(InternetHeaders headers,
byte[] content)
Create and return a MimeBodyPart object to represent a body part parsed from the InputStream. |
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(java.io.InputStream is)
Create and return a MimeBodyPart object to represent a body part parsed from the InputStream. |
int |
MimeBodyPart.getSize()
Return the size of the content of this body part in bytes. |
int |
MimeBodyPart.getLineCount()
Return the number of lines for the content of this Part. |
java.lang.String |
MimeBodyPart.getContentType()
Returns the value of the RFC 822 "Content-Type" header field. |
boolean |
MimeBodyPart.isMimeType(java.lang.String mimeType)
Is this Part of the specified MIME type? This method compares only the primaryType and
subType . |
java.lang.String |
MimeBodyPart.getDisposition()
Returns the value of the "Content-Disposition" header field. |
void |
MimeBodyPart.setDisposition(java.lang.String disposition)
Set the "Content-Disposition" header field of this body part. |
java.lang.String |
MimeBodyPart.getEncoding()
Returns the content transfer encoding from the "Content-Transfer-Encoding" header field. |
java.lang.String |
MimeBodyPart.getContentID()
Returns the value of the "Content-ID" header field. |
void |
MimeBodyPart.setContentID(java.lang.String cid)
Set the "Content-ID" header field of this body part. |
java.lang.String |
MimeBodyPart.getContentMD5()
Return the value of the "Content-MD5" header field. |
void |
MimeBodyPart.setContentMD5(java.lang.String md5)
Set the "Content-MD5" header field of this body part. |
java.lang.String[] |
MimeBodyPart.getContentLanguage()
Get the languages specified in the Content-Language header of this MimePart. |
void |
MimeBodyPart.setContentLanguage(java.lang.String[] languages)
Set the Content-Language header of this MimePart. |
java.lang.String |
MimeBodyPart.getDescription()
Returns the "Content-Description" header field of this body part. |
void |
MimeBodyPart.setDescription(java.lang.String description)
Set the "Content-Description" header field for this body part. |
void |
MimeBodyPart.setDescription(java.lang.String description,
java.lang.String charset)
Set the "Content-Description" header field for this body part. |
java.lang.String |
MimeBodyPart.getFileName()
Get the filename associated with this body part. |
void |
MimeBodyPart.setFileName(java.lang.String filename)
Set the filename associated with this body part, if possible. |
java.io.InputStream |
MimeBodyPart.getInputStream()
Return a decoded input stream for this body part's "content". |
protected java.io.InputStream |
MimeBodyPart.getContentStream()
Produce the raw bytes of the content. |
java.io.InputStream |
MimeBodyPart.getRawInputStream()
Return an InputStream to the raw data with any Content-Transfer-Encoding intact. |
javax.activation.DataHandler |
MimeBodyPart.getDataHandler()
Return a DataHandler for this body part's content. |
java.lang.Object |
MimeBodyPart.getContent()
Return the content as a java object. |
void |
MimeBodyPart.setDataHandler(javax.activation.DataHandler dh)
This method provides the mechanism to set this body part's content. |
void |
MimeBodyPart.setContent(java.lang.Object o,
java.lang.String type)
A convenience method for setting this body part's content. |
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 |
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 |
MimeBodyPart.setContent(Multipart mp)
This method sets the body part's content to a Multipart object. |
void |
MimeBodyPart.writeTo(java.io.OutputStream os)
Output the body part as an RFC 822 format stream. |
java.lang.String[] |
MimeBodyPart.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. |
void |
MimeBodyPart.setHeader(java.lang.String name,
java.lang.String value)
Set the value for this header_name. |
void |
MimeBodyPart.addHeader(java.lang.String name,
java.lang.String value)
Add this value to the existing values for this header_name. |
void |
MimeBodyPart.removeHeader(java.lang.String name)
Remove all headers with this name. |
java.util.Enumeration |
MimeBodyPart.getAllHeaders()
Return all the headers from this Message as an Enumeration of Header objects. |
java.util.Enumeration |
MimeBodyPart.getMatchingHeaders(java.lang.String[] names)
Return matching headers from this Message as an Enumeration of Header objects. |
java.util.Enumeration |
MimeBodyPart.getNonMatchingHeaders(java.lang.String[] names)
Return non-matching headers from this Message as an Enumeration of Header objects. |
void |
MimeBodyPart.addHeaderLine(java.lang.String line)
Add a header line to this body part |
java.util.Enumeration |
MimeBodyPart.getAllHeaderLines()
Get all header lines as an Enumeration of Strings. |
java.util.Enumeration |
MimeBodyPart.getMatchingHeaderLines(java.lang.String[] names)
Get matching header lines as an Enumeration of Strings. |
java.util.Enumeration |
MimeBodyPart.getNonMatchingHeaderLines(java.lang.String[] names)
Get non-matching header lines as an Enumeration of Strings. |
protected void |
MimeBodyPart.updateHeaders()
Examine the content of this body part and update the appropriate MIME headers. |
Constructors in javax.mail.internet that throw MessagingException | |
InternetHeaders(java.io.InputStream is)
Read and parse the given RFC822 message stream till the blank line separating the header from the body. |
|
MimeMessage(Session session,
java.io.InputStream is)
Constructs a MimeMessage by reading and parsing the data from the specified MIME InputStream. |
|
MimeMessage(MimeMessage source)
Constructs a new MimeMessage with content initialized from the source MimeMessage. |
|
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. |
|
MimeMultipart(javax.activation.DataSource ds)
Constructs a MimeMultipart object and its bodyparts from the given DataSource. |
|
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. |
Uses of MessagingException in javax.mail.search |
Subclasses of MessagingException in javax.mail.search | |
class |
SearchException
The exception thrown when a Search expression could not be handled. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |