Class TestEngineTemplateResolver
- Object
-
- org.thymeleaf.testing.templateengine.engine.resolver.TestEngineTemplateResolver
-
- All Implemented Interfaces:
org.thymeleaf.templateresolver.ITemplateResolver
public class TestEngineTemplateResolver extends Object implements org.thymeleaf.templateresolver.ITemplateResolver
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEST_TEMPLATE_CONVERSION_CHARSET
-
Constructor Summary
Constructors Constructor Description TestEngineTemplateResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the template resolverInteger
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.org.thymeleaf.templateresolver.TemplateResolution
resolveTemplate(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, Map<String,Object> templateResolutionAttributes)
void
setName(String name)
Sets a new name for the Template Resolver.void
setOrder(Integer order)
Sets a new order for the template engine in the chain.
-
-
-
Field Detail
-
TEST_TEMPLATE_CONVERSION_CHARSET
public static final String TEST_TEMPLATE_CONVERSION_CHARSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Returns the name of the template resolver
- Specified by:
getName
in interfaceorg.thymeleaf.templateresolver.ITemplateResolver
- Returns:
- the name of the template resolver
-
setName
public void setName(String name)
Sets a new name for the Template Resolver.
- Parameters:
name
- the new name
-
getOrder
public Integer 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 interfaceorg.thymeleaf.templateresolver.ITemplateResolver
- Returns:
- the order in which this template resolver will be called in the chain.
-
setOrder
public void setOrder(Integer order)
Sets a new order for the template engine in the chain. Order should start with 1.
- Parameters:
order
- the new order.
-
resolveTemplate
public org.thymeleaf.templateresolver.TemplateResolution resolveTemplate(org.thymeleaf.IEngineConfiguration configuration, String ownerTemplate, String template, Map<String,Object> templateResolutionAttributes)
- Specified by:
resolveTemplate
in interfaceorg.thymeleaf.templateresolver.ITemplateResolver
-
-