Uses of Class
javax.mail.MessagingException

Packages that use MessagingException
javax.mail   
javax.mail.internet   
javax.mail.search   
 

Uses of MessagingException in javax.mail
 

Subclasses of MessagingException in javax.mail
 class AuthenticationFailedException
           
 class FolderClosedException
           
 class FolderNotFoundException
           
 class IllegalWriteException
           
 class MessageRemovedException
           
 class MethodNotSupportedException
           
 class NoSuchProviderException
           
 class ReadOnlyFolderException
           
 class SendFailedException
           
 class StoreClosedException
           
 

Methods in javax.mail that throw MessagingException
 long UIDFolder.getUIDValidity()
           
 Message UIDFolder.getMessageByUID(long uid)
           
 Message[] UIDFolder.getMessagesByUID(long start, long end)
           
 Message[] UIDFolder.getMessagesByUID(long[] ids)
           
 long UIDFolder.getUID(Message message)
           
static void Transport.send(Message message)
          Send a message to all recipient addresses it contains (as returned by Message.getAllRecipients()) using message transports appropriate for each address.
static void Transport.send(Message message, Address[] addresses)
          Send a message to all addresses provided irrespective of any recipients contained in the message itself using message transports appropriate for each address.
abstract  void Transport.sendMessage(Message message, Address[] addresses)
          Send a message to the supplied addresses using this transport; if any of the addresses are invalid then a SendFailedException is thrown.
 URLName Folder.getURLName()
          Return the URLName for this folder, which includes the location of the store.
abstract  Folder Folder.getParent()
          Return the parent for this folder; if the folder is at the root of a heirarchy this returns null.
abstract  boolean Folder.exists()
          Check to see if this folder physically exists in the store.
abstract  Folder[] Folder.list(java.lang.String pattern)
          Return a list of folders from this Folder's namespace that match the supplied pattern.
 Folder[] Folder.listSubscribed(java.lang.String pattern)
          Return a list of folders to which the user is subscribed and which match the supplied pattern.
 Folder[] Folder.list()
          Convenience method that invokes Folder.list(String) with the pattern "%".
 Folder[] Folder.listSubscribed()
          Convenience method that invokes Folder.listSubscribed(String) with the pattern "%".
abstract  char Folder.getSeparator()
          Return the character used by this folder's Store to separate path components.
abstract  int Folder.getType()
          Return the type of this folder, indicating whether it can contain subfolders, messages, or both.
abstract  boolean Folder.create(int type)
          Create a new folder capable of containing subfoldera and/or messages as determined by the type parameter.
 void Folder.setSubscribed(boolean subscribed)
          Set the user's subscription to this folder.
abstract  boolean Folder.hasNewMessages()
          Check to see if this Folder conatins messages with the Flag.RECENT flag set.
abstract  Folder Folder.getFolder(java.lang.String name)
          Get the Folder determined by the supplied name; if the name is relative then it is interpreted relative to this folder.
abstract  boolean Folder.delete(boolean recurse)
          Delete this folder and possibly any subfolders.
abstract  boolean Folder.renameTo(Folder newName)
          Rename this folder; the folder must be closed.
abstract  void Folder.open(int mode)
          Open this folder; the folder must be able to contain messages and must currently be closed.
abstract  void Folder.close(boolean expunge)
          Close this folder; it must already be open.
abstract  int Folder.getMessageCount()
          Return the number of messages this folder contains.
 int Folder.getNewMessageCount()
          Return the numbew of messages in this folder that have the Flag.RECENT flag set.
 int Folder.getUnreadMessageCount()
          Return the numbew of messages in this folder that do not have the Flag.SEEN flag set.
 int Folder.getDeletedMessageCount()
          Return the numbew of messages in this folder that have the Flag.DELETED flag set.
abstract  Message Folder.getMessage(int index)
          Retrieve the message with the specified index in this Folder; messages indices start at 1 not zero.
 Message[] Folder.getMessages(int start, int end)
          Retrieve messages with index between start and end inclusive
 Message[] Folder.getMessages(int[] ids)
          Retrieve messages with the specified indices.
 Message[] Folder.getMessages()
          Retrieve all messages.
abstract  void Folder.appendMessages(Message[] messages)
          Append the supplied messages to this folder.
 void Folder.fetch(Message[] messages, FetchProfile profile)
          Hint to the store to prefetch information on the supplied messaged.
 void Folder.setFlags(Message[] messages, Flags flags, boolean value)
          Set flags on the messages to the supplied value; all messages must belong to this folder.
 void Folder.setFlags(int start, int end, Flags flags, boolean value)
          Set flags on a range of messages to the supplied value.
 void Folder.setFlags(int[] ids, Flags flags, boolean value)
          Set flags on a set of messages to the supplied value.
 void Folder.copyMessages(Message[] messages, Folder folder)
          Copy the specified messages to another folder.
abstract  Message[] Folder.expunge()
          Permanently delete all supplied messages that have the DELETED flag set from the Store.
 Message[] Folder.search(SearchTerm term)
          Search this folder for messages matching the supplied search criteria.
 Message[] Folder.search(SearchTerm term, Message[] messages)
          Search the supplied messages for those that match the supplied criteria; messages must belong to this folder.
protected  void Multipart.setMultipartDataSource(MultipartDataSource mds)
          Initialize this multipart object from the supplied data source.
 int Multipart.getCount()
          Return the number of enclosed parts
 BodyPart Multipart.getBodyPart(int index)
          Get the specified part; numbering starts at zero.
 boolean Multipart.removeBodyPart(BodyPart part)
          Remove the supplied part from the list.
 void Multipart.removeBodyPart(int index)
          Remove the specified part; all others move down one
 void Multipart.addBodyPart(BodyPart part)
          Add a part to the end of the list.
 void Multipart.addBodyPart(BodyPart part, int pos)
          Insert a part into the list at a designated point; all subsequent parts move down
abstract  void Multipart.writeTo(java.io.OutputStream out)
          Encode and write this multipart to the supplied OutputStream; the encoding used is determined by the implementation.
abstract  Address[] Message.getFrom()
          Return the "From" header indicating the identity of the person who the message is from; in some circumstances this may be different to the actual sender.
abstract  void Message.setFrom()
          Set the "From" header for this message to the value of the "mail.user" property, of if that property is not set, to the value of the system property "user.name"
abstract  void Message.setFrom(Address address)
          Set the "From" header to the supplied address.
abstract  void Message.addFrom(Address[] addresses)
          Add multiple addresses to the "From" header.
abstract  Address[] Message.getRecipients(Message.RecipientType type)
          Get all recipients of the given type.
 Address[] Message.getAllRecipients()
          Get all recipients of this message.
abstract  void Message.setRecipients(Message.RecipientType type, Address[] addresses)
          Set the list of recipients for the specified type.
 void Message.setRecipient(Message.RecipientType type, Address address)
          Set the list of recipients for the specified type to a single address.
abstract  void Message.addRecipients(Message.RecipientType type, Address[] addresses)
          Add recipents of a specified type.
 void Message.addRecipient(Message.RecipientType type, Address address)
          Add a recipent of a specified 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 for this message.
abstract  void Message.setSubject(java.lang.String subject)
          Set the subject of this message
abstract  java.util.Date Message.getSentDate()
          Return the date that this message was sent.
abstract  void Message.setSentDate(java.util.Date sent)
          Set the date this message was sent.
abstract  java.util.Date Message.getReceivedDate()
          Return the date this message was received.
abstract  Flags Message.getFlags()
          Return a copy the flags associated with this message.
 boolean Message.isSet(Flags.Flag flag)
          Check whether the supplied flag is set.
abstract  void Message.setFlags(Flags flags, boolean set)
          Set the flags specified to the supplied value; flags not included in the supplied Flags parameter are not affected.
 void Message.setFlag(Flags.Flag flag, boolean set)
          Set a flag to the supplied value.
abstract  Message Message.reply(boolean replyToAll)
          Create a new message suitable as a reply to this message with all headers set up appropriately.
abstract  void Message.saveChanges()
          To ensure changes are saved to the store, this message should be invoked before its containing folder is closed.
 boolean Message.match(SearchTerm term)
          Apply the specified search criteria to this message
abstract  Folder Store.getDefaultFolder()
          Retutn a Folder object that represents the root of the namespace for the current user.
abstract  Folder Store.getFolder(java.lang.String name)
          Return the Folder corresponding to the given name.
abstract  Folder Store.getFolder(URLName name)
          Return the folder identified by the URLName; the URLName must refer to this Store.
 Folder[] Store.getPersonalNamespaces()
          Return the root folders of the personal namespace belonging to the current user.
 Folder[] Store.getUserNamespaces(java.lang.String user)
          Return the root folders of the personal namespaces belonging to the supplied user.
 Folder[] Store.getSharedNamespaces()
          Return the root folders of namespaces that are intended to be shared between users.
 void Service.connect()
          A generic connect method that takes no parameters allowing subclasses to implement an appropriate authentication scheme.
 void Service.connect(java.lang.String host, java.lang.String user, java.lang.String password)
          Connect to the specified host using a simple username/password authenticaion scheme and the default port.
 void Service.connect(java.lang.String host, int port, java.lang.String user, java.lang.String password)
          Connect to the specified host at the specified port using a simple username/password authenticaion scheme.
protected  boolean Service.protocolConnect(java.lang.String host, int port, java.lang.String user, java.lang.String password)
          Attempt the protocol-specific connection; subclasses should override this to establish a connection in the appropriate manner.
 void Service.close()
          Close this service and terminate its physical connection.
 BodyPart MultipartDataSource.getBodyPart(int index)
           
 void Part.addHeader(java.lang.String name, java.lang.String value)
           
 java.util.Enumeration Part.getAllHeaders()
           
 java.lang.Object Part.getContent()
           
 java.lang.String Part.getContentType()
           
 javax.activation.DataHandler Part.getDataHandler()
           
 java.lang.String Part.getDescription()
           
 java.lang.String Part.getDisposition()
           
 java.lang.String Part.getFileName()
           
 java.lang.String[] Part.getHeader(java.lang.String name)
           
 java.io.InputStream Part.getInputStream()
           
 int Part.getLineCount()
           
 java.util.Enumeration Part.getMatchingHeaders(java.lang.String[] names)
           
 java.util.Enumeration Part.getNonMatchingHeaders(java.lang.String[] names)
           
 int Part.getSize()
           
 boolean Part.isMimeType(java.lang.String mimeType)
           
 void Part.removeHeader(java.lang.String name)
           
 void Part.setContent(Multipart content)
           
 void Part.setContent(java.lang.Object content, java.lang.String type)
           
 void Part.setDataHandler(javax.activation.DataHandler handler)
           
 void Part.setDescription(java.lang.String description)
           
 void Part.setDisposition(java.lang.String disposition)
           
 void Part.setFileName(java.lang.String name)
           
 void Part.setHeader(java.lang.String name, java.lang.String value)
           
 void Part.setText(java.lang.String content)
           
 void Part.writeTo(java.io.OutputStream out)
           
 Folder Session.getFolder(URLName name)
          Return a closed folder for the supplied URLName, or null if it cannot be obtained.
 

Uses of MessagingException in javax.mail.internet
 

Subclasses of MessagingException in javax.mail.internet
 class AddressException
           
 class ParseException
           
 

Methods in javax.mail.internet that throw MessagingException
 void MimePart.addHeaderLine(java.lang.String line)
           
 java.util.Enumeration MimePart.getAllHeaderLines()
           
 java.lang.String MimePart.getContentID()
           
 java.lang.String[] MimePart.getContentLanguage()
           
 java.lang.String MimePart.getContentMD5()
           
 java.lang.String MimePart.getEncoding()
           
 java.lang.String MimePart.getHeader(java.lang.String header, java.lang.String delimiter)
           
 java.util.Enumeration MimePart.getMatchingHeaderLines(java.lang.String[] names)
           
 java.util.Enumeration MimePart.getNonMatchingHeaderLines(java.lang.String[] names)
           
 void MimePart.setContentLanguage(java.lang.String[] languages)
           
 void MimePart.setContentMD5(java.lang.String content)
           
 void MimePart.setText(java.lang.String text)
           
 void MimePart.setText(java.lang.String text, java.lang.String charset)
           
 void InternetHeaders.load(java.io.InputStream in)
          Read and parse the supplied stream and add all headers to the current set.
 void MimeMultipart.setSubType(java.lang.String subtype)
           
 int MimeMultipart.getCount()
           
 BodyPart MimeMultipart.getBodyPart(int part)
           
 BodyPart MimeMultipart.getBodyPart(java.lang.String cid)
           
protected  void MimeMultipart.updateHeaders()
           
 void MimeMultipart.writeTo(java.io.OutputStream out)
           
protected  void MimeMultipart.parse()
           
protected  InternetHeaders MimeMultipart.createInternetHeaders(java.io.InputStream in)
           
protected  MimeBodyPart MimeMultipart.createMimeBodyPart(InternetHeaders headers, byte[] data)
           
protected  MimeBodyPart MimeMultipart.createMimeBodyPart(java.io.InputStream in)
           
protected  void MimeMessage.parse(java.io.InputStream in)
          Parse the supplied stream and initialize MimeMessage.headers and MimeMessage.content appropriately.
 Address[] MimeMessage.getFrom()
          Get the message "From" addresses.
 void MimeMessage.setFrom(Address address)
          Set the current message "From" recipient.
 void MimeMessage.setFrom()
          Set the "From" header using the value returned by InternetAddress.getLocalAddress(javax.mail.Session).
 void MimeMessage.addFrom(Address[] addresses)
          Add a set of addresses to the existing From header.
 Address MimeMessage.getSender()
          Return the "Sender" header as an address.
 void MimeMessage.setSender(Address address)
          Set the "Sender" header.
 Address[] MimeMessage.getRecipients(Message.RecipientType type)
          Gets the recipients by type.
 Address[] MimeMessage.getAllRecipients()
          Retrieve all of the recipients defined for this message.
 void MimeMessage.setRecipients(Message.RecipientType type, Address[] addresses)
          Set a recipients list for a particular recipient type.
 void MimeMessage.setRecipients(Message.RecipientType type, java.lang.String address)
          Set a recipient field to a string address (which may be a list or group type).
 void MimeMessage.addRecipients(Message.RecipientType type, Address[] address)
          Add a list of addresses to a target recipient list.
 void MimeMessage.addRecipients(Message.RecipientType type, java.lang.String address)
          Add an address to a target recipient list by string name.
 Address[] MimeMessage.getReplyTo()
          Get the ReplyTo address information.
 void MimeMessage.setReplyTo(Address[] address)
          Set the Reply-To field to the provided list of addresses.
 java.lang.String MimeMessage.getSubject()
          Returns the value of the "Subject" header.
 void MimeMessage.setSubject(java.lang.String subject)
          Set the value for the "Subject" header.
 void MimeMessage.setSubject(java.lang.String subject, java.lang.String charset)
           
 java.util.Date MimeMessage.getSentDate()
          Get the value of the "Date" header field.
 void MimeMessage.setSentDate(java.util.Date sent)
          Set the message sent date.
 java.util.Date MimeMessage.getReceivedDate()
          Get the message received date.
 int MimeMessage.getSize()
          Return the content size of this message.
 int MimeMessage.getLineCount()
          Retrieve the line count for the current message.
 java.lang.String MimeMessage.getContentType()
          Returns the current content type (defined in the "Content-Type" header.
 boolean MimeMessage.isMimeType(java.lang.String type)
          Tests to see if this message has a mime-type match with the given type name.
 java.lang.String MimeMessage.getDisposition()
          Retrieve the message "Content-Disposition" header field.
 void MimeMessage.setDisposition(java.lang.String disposition)
          Set a new dispostion value for the "Content-Disposition" field.
 java.lang.String MimeMessage.getEncoding()
          Decode the Content-Transfer-Encoding header to determine the transfer encoding type.
 java.lang.String MimeMessage.getContentID()
          Retrieve the value of the "Content-ID" header.
 void MimeMessage.setContentID(java.lang.String cid)
           
 java.lang.String MimeMessage.getContentMD5()
           
 void MimeMessage.setContentMD5(java.lang.String md5)
           
 java.lang.String MimeMessage.getDescription()
           
 void MimeMessage.setDescription(java.lang.String description)
           
 void MimeMessage.setDescription(java.lang.String description, java.lang.String charset)
           
 java.lang.String[] MimeMessage.getContentLanguage()
           
 void MimeMessage.setContentLanguage(java.lang.String[] languages)
           
 java.lang.String MimeMessage.getMessageID()
           
 java.lang.String MimeMessage.getFileName()
           
 void MimeMessage.setFileName(java.lang.String name)
           
 java.io.InputStream MimeMessage.getInputStream()
           
protected  java.io.InputStream MimeMessage.getContentStream()
           
 java.io.InputStream MimeMessage.getRawInputStream()
           
 javax.activation.DataHandler MimeMessage.getDataHandler()
           
 java.lang.Object MimeMessage.getContent()
           
 void MimeMessage.setDataHandler(javax.activation.DataHandler handler)
           
 void MimeMessage.setContent(java.lang.Object content, java.lang.String type)
           
 void MimeMessage.setText(java.lang.String text)
           
 void MimeMessage.setText(java.lang.String text, java.lang.String charset)
           
 void MimeMessage.setContent(Multipart part)
           
 Message MimeMessage.reply(boolean replyToAll)
           
 void MimeMessage.writeTo(java.io.OutputStream out)
          Write the message out to a stream in RFC 822 format.
 void MimeMessage.writeTo(java.io.OutputStream out, java.lang.String[] ignoreHeaders)
          Write the message out to a target output stream, excluding the specified message headers.
 java.lang.String[] MimeMessage.getHeader(java.lang.String name)
          Retrieve all headers that match a given name.
 java.lang.String MimeMessage.getHeader(java.lang.String name, java.lang.String delimiter)
          Get all headers that match a particular name, as a single string.
 void MimeMessage.setHeader(java.lang.String name, java.lang.String value)
          Set a new value for a named header.
 void MimeMessage.addHeader(java.lang.String name, java.lang.String value)
          Add a new value to an existing header.
 void MimeMessage.removeHeader(java.lang.String name)
          Remove a header with the given name.
 java.util.Enumeration MimeMessage.getAllHeaders()
          Retrieve the complete list of message headers, as an enumeration.
 java.util.Enumeration MimeMessage.getMatchingHeaders(java.lang.String[] names)
           
 java.util.Enumeration MimeMessage.getNonMatchingHeaders(java.lang.String[] names)
           
 void MimeMessage.addHeaderLine(java.lang.String line)
           
 java.util.Enumeration MimeMessage.getAllHeaderLines()
           
 java.util.Enumeration MimeMessage.getMatchingHeaderLines(java.lang.String[] names)
           
 java.util.Enumeration MimeMessage.getNonMatchingHeaderLines(java.lang.String[] names)
           
 Flags MimeMessage.getFlags()
           
 boolean MimeMessage.isSet(Flags.Flag flag)
           
 void MimeMessage.setFlags(Flags flag, boolean set)
          Set or clear a flag value.
 void MimeMessage.saveChanges()
          Saves any changes on this message.
protected  void MimeMessage.updateHeaders()
          Update the internet headers so that they make sense.
protected  InternetHeaders MimeMessage.createInternetHeaders(java.io.InputStream in)
           
static java.io.InputStream MimeUtility.decode(java.io.InputStream in, java.lang.String encoding)
           
static java.io.OutputStream MimeUtility.encode(java.io.OutputStream out, java.lang.String encoding)
          Wrap an encoder around a given output stream.
static java.io.OutputStream MimeUtility.encode(java.io.OutputStream out, java.lang.String encoding, java.lang.String filename)
          Wrap an encoder around a given output stream.
 int MimeBodyPart.getSize()
          Return the content size of this message.
 int MimeBodyPart.getLineCount()
           
 java.lang.String MimeBodyPart.getContentType()
           
 boolean MimeBodyPart.isMimeType(java.lang.String type)
          Tests to see if this message has a mime-type match with the given type name.
 java.lang.String MimeBodyPart.getDisposition()
          Retrieve the message "Content-Disposition" header field.
 void MimeBodyPart.setDisposition(java.lang.String disposition)
          Set a new dispostion value for the "Content-Disposition" field.
 java.lang.String MimeBodyPart.getEncoding()
          Retrieves the current value of the "Content-Transfer-Encoding" header.
 java.lang.String MimeBodyPart.getContentID()
          Retrieve the value of the "Content-ID" header.
 void MimeBodyPart.setContentID(java.lang.String cid)
           
 java.lang.String MimeBodyPart.getContentMD5()
           
 void MimeBodyPart.setContentMD5(java.lang.String md5)
           
 java.lang.String[] MimeBodyPart.getContentLanguage()
           
 void MimeBodyPart.setContentLanguage(java.lang.String[] languages)
           
 java.lang.String MimeBodyPart.getDescription()
           
 void MimeBodyPart.setDescription(java.lang.String description)
           
 void MimeBodyPart.setDescription(java.lang.String description, java.lang.String charset)
           
 java.lang.String MimeBodyPart.getFileName()
           
 void MimeBodyPart.setFileName(java.lang.String name)
           
 java.io.InputStream MimeBodyPart.getInputStream()
           
protected  java.io.InputStream MimeBodyPart.getContentStream()
           
 java.io.InputStream MimeBodyPart.getRawInputStream()
           
 javax.activation.DataHandler MimeBodyPart.getDataHandler()
           
 java.lang.Object MimeBodyPart.getContent()
           
 void MimeBodyPart.setDataHandler(javax.activation.DataHandler handler)
           
 void MimeBodyPart.setContent(java.lang.Object content, java.lang.String type)
           
 void MimeBodyPart.setText(java.lang.String text)
           
 void MimeBodyPart.setText(java.lang.String text, java.lang.String charset)
           
 void MimeBodyPart.setContent(Multipart part)
           
 void MimeBodyPart.writeTo(java.io.OutputStream out)
           
 java.lang.String[] MimeBodyPart.getHeader(java.lang.String name)
           
 java.lang.String MimeBodyPart.getHeader(java.lang.String name, java.lang.String delimiter)
           
 void MimeBodyPart.setHeader(java.lang.String name, java.lang.String value)
           
 void MimeBodyPart.addHeader(java.lang.String name, java.lang.String value)
           
 void MimeBodyPart.removeHeader(java.lang.String name)
           
 java.util.Enumeration MimeBodyPart.getAllHeaders()
           
 java.util.Enumeration MimeBodyPart.getMatchingHeaders(java.lang.String[] name)
           
 java.util.Enumeration MimeBodyPart.getNonMatchingHeaders(java.lang.String[] name)
           
 void MimeBodyPart.addHeaderLine(java.lang.String line)
           
 java.util.Enumeration MimeBodyPart.getAllHeaderLines()
           
 java.util.Enumeration MimeBodyPart.getMatchingHeaderLines(java.lang.String[] names)
           
 java.util.Enumeration MimeBodyPart.getNonMatchingHeaderLines(java.lang.String[] names)
           
protected  void MimeBodyPart.updateHeaders()
           
 

Constructors in javax.mail.internet that throw MessagingException
InternetHeaders(java.io.InputStream in)
          Create a new InternetHeaders initialized by reading headers from the stream.
MimeMultipart(javax.activation.DataSource dataSource)
          Create a MimeMultipart from the supplied DataSource.
MimeMessage(Session session, java.io.InputStream in)
          Create a MimeMessage by reading an parsing the data from the supplied stream.
MimeMessage(MimeMessage message)
          Copy a MimeMessage.
MimeMessage(Folder folder, java.io.InputStream in, int number)
          Create a MimeMessage by reading an parsing the data from the supplied stream.
MimeMessage(Folder folder, InternetHeaders headers, byte[] content, int number)
          Create a MimeMessage with the supplied headers and content.
MimeBodyPart(java.io.InputStream in)
           
MimeBodyPart(InternetHeaders headers, byte[] content)
           
 

Uses of MessagingException in javax.mail.search
 

Subclasses of MessagingException in javax.mail.search
 class SearchException
           
 



Copyright © {inceptionYear}-2007 null. All Rights Reserved.