public class ImapModelMessage extends AbstractMimeMessage
MimeMessage.RecipientType
DEFAULT_SUFFIX, generateBody, imapService, isMessageInSitesLibrary, MAX_RETRIES, messageFileInfo, serviceRegistry, wrappedMessage
cachedContent, content, contentStream, dh, flags, headers, modified, saved
ATTACHMENT, INLINE
Constructor and Description |
---|
ImapModelMessage(FileInfo fileInfo,
ServiceRegistry serviceRegistry,
boolean generateBody)
Constructs
ImapModelMessage object. |
Modifier and Type | Method and Description |
---|---|
void |
buildMessageInternal()
Method must be implemented in subclasses.
|
protected InputStream |
getContentStream() |
buildMessage, checkParameter, getEmailBodyText, getFlags, getMessageInfo, setFlags, setMessageHeaders, updateMessageID
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
addRecipient, getFolder, getMessageNumber, getSession, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient
public ImapModelMessage(FileInfo fileInfo, ServiceRegistry serviceRegistry, boolean generateBody) throws MessagingException
ImapModelMessage
object.fileInfo
- - reference to the FileInfo
object representing the message.serviceRegistry
- - serviceRegistry object.generateBody
- - if true
message body will be generated.MessagingException
- if generation of the body fails.public void buildMessageInternal() throws MessagingException
AbstractMimeMessage
buildMessageInternal
in class AbstractMimeMessage
MessagingException
protected InputStream getContentStream() throws MessagingException
getContentStream
in class MimeMessage
MessagingException
Copyright © 2005–2017 Alfresco Software. All rights reserved.