|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateInterface
The TemplateInterface provides common behavior for alert templates. Templates can be defined by a physical file location, a WebDAV URL or generic URL.
The template is a file that enables a site to customize the contents of an alert notification. The templates can contain variables that will be substituted with the corresponding merge variable values. Templates use variables that begin with the percent symbol (%). When the alert notification is processed by the delivery transports, the variables will be substituted with the provided merge variables. For example, the template may contain the following text:
To: %ADDRESSEE_NAME I am sending you this message as a result of recent account activity.When the alert notification is sent, the delivery transport processes the alert notification by substituting the merge variables into the template. If a merge variable of ADDRESSEE_NAME is provided with a value of "Jane Smith", then the resulting alert notification will look like this:
To: Jane Smith I am sending you this message as a result of recent account activity.
See SimpleTemplate
for more details on the substitution
rules.
TemplateFactory
Method Summary | |
---|---|
java.util.Map |
getMergeVariables()
The merge variables to use during template substitutions. |
java.lang.String |
getPath()
Return the path to the template as a String. |
java.lang.String |
getResult()
Returns the template with merge variable substitutions applied. |
Method Detail |
---|
java.util.Map getMergeVariables()
java.lang.String getResult() throws ServiceException
ServiceException
- If an error occurs during processing.java.lang.String getPath()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |