Class ImapModelMessage

  • All Implemented Interfaces:
    javax.mail.internet.MimePart, javax.mail.Part

    public class ImapModelMessage
    extends AbstractMimeMessage
    Extended MimeMessage to represent a content stored in the Alfresco repository.
    Author:
    Arseny Kovalchuk
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage

        javax.mail.internet.MimeMessage.RecipientType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildMessageInternal()
      Method must be implemented in subclasses.
      protected java.io.InputStream getContentStream()  
      • Methods inherited from class javax.mail.internet.MimeMessage

        addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, writeTo, writeTo
      • Methods inherited from class javax.mail.Message

        addRecipient, getFolder, getMessageNumber, getSession, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImapModelMessage

        public ImapModelMessage​(FileInfo fileInfo,
                                ServiceRegistry serviceRegistry,
                                boolean generateBody)
                         throws javax.mail.MessagingException
        Constructs ImapModelMessage object.
        Parameters:
        fileInfo - - reference to the FileInfo object representing the message.
        serviceRegistry - - serviceRegistry object.
        generateBody - - if true message body will be generated.
        Throws:
        javax.mail.MessagingException - if generation of the body fails.
    • Method Detail

      • buildMessageInternal

        public void buildMessageInternal()
                                  throws javax.mail.MessagingException
        Description copied from class: AbstractMimeMessage
        Method must be implemented in subclasses. It usually should be used to generate message body.
        Specified by:
        buildMessageInternal in class AbstractMimeMessage
        Throws:
        javax.mail.MessagingException
      • getContentStream

        protected java.io.InputStream getContentStream()
                                                throws javax.mail.MessagingException
        Overrides:
        getContentStream in class javax.mail.internet.MimeMessage
        Throws:
        javax.mail.MessagingException