public class SimpleContentProcessor extends MessageContentProcessor
A MessageContentProcessor which doesn't do any processing
on the passed in content, but simply uses it as is to set the
Message content. The MIME type of the content in the Message
is specified via the service's contentType
property.
Message
MessageContentProcessor.UrlAndMimeType
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
SimpleContentProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Returns the MIME type that should be assigned to the message
content.
|
void |
setContentType(java.lang.String pContentType)
Sets the MIME type that should be assigned to the message
content.
|
void |
setMessageContent(javax.mail.Message pMessage,
java.lang.String pContent,
java.io.File[] pAttachments,
boolean pInlineAttachments)
Stuffs the given content into the Message, using the
contentType property to specify the content's
MIME type. |
void |
setMessageContent(javax.mail.Message pMessage,
java.lang.String pContent,
java.lang.String pContentType,
java.io.File[] pAttachments,
boolean pInlineAttachments)
Processes the email message content and stuffs the resulting
content into the Message.
|
pruneAlternatives, setMessageContent, setMessageContent, setMessageContents, supportsMultipleContents
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public java.lang.String getContentType()
public void setContentType(java.lang.String pContentType)
public void setMessageContent(javax.mail.Message pMessage, java.lang.String pContent, java.io.File[] pAttachments, boolean pInlineAttachments) throws TemplateEmailException
contentType
property to specify the content's
MIME type.pAttachments
- the files to attach to the message, in
addition to setting the regular contentpInlineAttachments
- if true, the files will be inlined
into the message, rather than attachedTemplateEmailException
- if the content could not be
processed or set in the Messagepublic void setMessageContent(javax.mail.Message pMessage, java.lang.String pContent, java.lang.String pContentType, java.io.File[] pAttachments, boolean pInlineAttachments) throws TemplateEmailException
setMessageContent
in class MessageContentProcessor
pAttachments
- the files to attach to the message, in
addition to setting the regular contentpInlineAttachments
- if true, the files will be inlined
into the message, rather than attachedTemplateEmailException
- if the content could not be
processed or set in the Message