Class BaseTemplateEngine
java.lang.Object
org.apache.struts2.components.template.BaseTemplateEngine
- All Implemented Interfaces:
TemplateEngine
- Direct Known Subclasses:
FreemarkerTemplateEngine
,JspTemplateEngine
Base class for template engines.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getFinalTemplateName
(Template template) protected abstract String
protected String
getThemeProps
(Template template) Get's the properties for the given template.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.struts2.components.template.TemplateEngine
renderTemplate
-
Field Details
-
DEFAULT_THEME_PROPERTIES_FILE_NAME
The default theme properties file name. Default is 'theme.properties'- See Also:
-
-
Constructor Details
-
BaseTemplateEngine
public BaseTemplateEngine()
-
-
Method Details
-
getThemeProps
Description copied from interface:TemplateEngine
Get's the properties for the given template.- Specified by:
getThemeProps
in interfaceTemplateEngine
- Parameters:
template
- the template.- Returns:
- the properties as key value pairs.
-
getFinalTemplateName
-
getThemePropertiesFileName
-
getSuffix
-