public abstract class AbstractMimeMessage extends MimeMessage
MimeMessage.RecipientType
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_SUFFIX |
protected boolean |
generateBody |
protected ImapService |
imapService |
protected boolean |
isMessageInSitesLibrary |
protected static int |
MAX_RETRIES |
protected FileInfo |
messageFileInfo |
protected ServiceRegistry |
serviceRegistry |
protected MimeMessage |
wrappedMessage |
cachedContent, content, contentStream, dh, flags, headers, modified, saved
ATTACHMENT, INLINE
Modifier | Constructor and Description |
---|---|
protected |
AbstractMimeMessage(FileInfo fileInfo,
ServiceRegistry serviceRegistry,
boolean generateBody) |
protected |
AbstractMimeMessage(Session session) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildMessage(FileInfo fileInfo,
ServiceRegistry serviceRegistry) |
abstract void |
buildMessageInternal()
Method must be implemented in subclasses.
|
protected void |
checkParameter(Object parameter,
String name)
Method that checks mandatory parameter.
|
String |
getEmailBodyText(ImapService.EmailBodyFormat type)
Returns the text representing email body for ContentModel node.
|
Flags |
getFlags()
Returns message flags.
|
FileInfo |
getMessageInfo()
Returns
FileInfo object representing message in Alfresco. |
void |
setFlags(Flags flags,
boolean value)
Sets message flags.
|
protected void |
setMessageHeaders() |
protected void |
updateMessageID() |
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, 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
protected static final String DEFAULT_SUFFIX
protected static int MAX_RETRIES
protected boolean generateBody
protected ServiceRegistry serviceRegistry
protected ImapService imapService
protected FileInfo messageFileInfo
protected MimeMessage wrappedMessage
protected boolean isMessageInSitesLibrary
protected AbstractMimeMessage(Session session)
protected AbstractMimeMessage(FileInfo fileInfo, ServiceRegistry serviceRegistry, boolean generateBody) throws MessagingException
MessagingException
protected void buildMessage(FileInfo fileInfo, ServiceRegistry serviceRegistry) throws MessagingException
MessagingException
public abstract void buildMessageInternal() throws MessagingException
MessagingException
protected void checkParameter(Object parameter, String name)
parameter
- The parameter instance to check.name
- The name of the parameter.protected void setMessageHeaders() throws MessagingException
MessagingException
public FileInfo getMessageInfo()
FileInfo
object representing message in Alfresco.FileInfo
object.public Flags getFlags()
getFlags
in class MimeMessage
Flags
public void setFlags(Flags flags, boolean value) throws MessagingException
setFlags
in class MimeMessage
flags
- - Flags
object.value
- - flags value.MessagingException
public String getEmailBodyText(ImapService.EmailBodyFormat type)
type
- The type of the returned body. May be the one of ImapService.EmailBodyFormat
.protected void updateMessageID() throws MessagingException
updateMessageID
in class MimeMessage
MessagingException
Copyright © 2005–2017 Alfresco Software. All rights reserved.