Interface ConfluenceVelocityTemplate
-
- All Superinterfaces:
HtmlSafeVelocityTemplate
public interface ConfluenceVelocityTemplate extends HtmlSafeVelocityTemplate
Exposes template details that are of interest to the Confluence Velocity template rendering subsystem.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()Get the name of this template.booleanisAutoEncodeDisabled()Determines whether the template has disabled auto encoding on its contents.booleanisDeclaredHtmlSafe()Used by plugins to determine whether auto encoding should be enabled on its contents.booleanisPluginTemplate()
-
-
-
Method Detail
-
getName
String getName()
Get the name of this template.- Returns:
- The name of this template.
-
isAutoEncodeDisabled
boolean isAutoEncodeDisabled()
Determines whether the template has disabled auto encoding on its contents. This is achieved by including theDisableAntiXssDirectiveReturns false if no directive is found.- Specified by:
isAutoEncodeDisabledin interfaceHtmlSafeVelocityTemplate- Returns:
- true if this template has disabled auto encoding on its contents
-
isDeclaredHtmlSafe
boolean isDeclaredHtmlSafe()
Used by plugins to determine whether auto encoding should be enabled on its contents. This is achieved by including theHtmlSafeDirectiveReturns false if no directive is found.- Specified by:
isDeclaredHtmlSafein interfaceHtmlSafeVelocityTemplate- Returns:
- true if the template should have auto encoding enabled
-
isPluginTemplate
boolean isPluginTemplate()
- Returns:
- true if this template was loaded from a dynamic plugin.
-
-