Package net.solarnetwork.central.mail
Interface MessageTemplateDataSource
- All Superinterfaces:
MessageDataSource
- All Known Implementing Classes:
ClasspathResourceMessageTemplateDataSource
API for data required to generate a template based mail message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA sensible standard column width to use for word-wrapping. -
Method Summary
Modifier and TypeMethodDescriptionGet a Locale for the message.org.springframework.core.io.ResourceGet the message template.getModel()Get a message template model to merge into the message.Get the message subject.Get a character column index at which to hard-wrap message text at.Methods inherited from interface net.solarnetwork.central.mail.MessageDataSource
getAttachments, getBody
-
Field Details
-
STANDARD_WORD_WRAP_COLUMN
static final int STANDARD_WORD_WRAP_COLUMNA sensible standard column width to use for word-wrapping.- Since:
- 1.1
- See Also:
-
-
Method Details
-
getModel
Get a message template model to merge into the message.- Returns:
- Map of model objects
-
getLocale
Locale getLocale()Get a Locale for the message.- Returns:
- a Locale
-
getMessageTemplate
org.springframework.core.io.Resource getMessageTemplate()Get the message template.- Returns:
- message template
-
getSubject
String getSubject()Get the message subject.- Specified by:
getSubjectin interfaceMessageDataSource- Returns:
- message subject
-
getWordWrapCharacterIndex
Integer getWordWrapCharacterIndex()Get a character column index at which to hard-wrap message text at. Return0to indicate no wrapping should occur.- Returns:
- The word wrap character column index, or null if unspecified.
- Since:
- 1.1
-