Class TestEngineTemplateResolver
Object
org.thymeleaf.testing.templateengine.engine.resolver.TestEngineTemplateResolver
- All Implemented Interfaces:
ITemplateResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the template resolvergetOrder()
Returns the order in which this template resolver will be asked to resolve templates as a part of the chain of resolvers configured into the template engine.resolveTemplate
(IEngineConfiguration configuration, String ownerTemplate, String template, Map<String, Object> templateResolutionAttributes) void
Sets a new name for the Template Resolver.void
Sets a new order for the template engine in the chain.
-
Field Details
-
TEST_TEMPLATE_CONVERSION_CHARSET
- See Also:
-
-
Constructor Details
-
TestEngineTemplateResolver
public TestEngineTemplateResolver()
-
-
Method Details
-
getName
Returns the name of the template resolver
- Specified by:
getName
in interfaceITemplateResolver
- Returns:
- the name of the template resolver
-
setName
Sets a new name for the Template Resolver.
- Parameters:
name
- the new name
-
getOrder
Returns the order in which this template resolver will be asked to resolve templates as a part of the chain of resolvers configured into the template engine.
Order should start with 1.
- Specified by:
getOrder
in interfaceITemplateResolver
- Returns:
- the order in which this template resolver will be called in the chain.
-
setOrder
Sets a new order for the template engine in the chain. Order should start with 1.
- Parameters:
order
- the new order.
-
resolveTemplate
public TemplateResolution resolveTemplate(IEngineConfiguration configuration, String ownerTemplate, String template, Map<String, Object> templateResolutionAttributes) - Specified by:
resolveTemplate
in interfaceITemplateResolver
-