Class ThymeleafDispatcher.Builder
java.lang.Object
org.apache.juneau.rest.server.view.thymeleaf.ThymeleafDispatcher.Builder
- Enclosing class:
- ThymeleafDispatcher
Builder for
ThymeleafDispatcher.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor — package access forThymeleafDispatcher.create(). -
Method Summary
Modifier and TypeMethodDescriptionSets the classpath base path under which template resources are resolved.build()Builds theThymeleafDispatcher.cacheTemplates(boolean value) Sets whether the bridge's default engine caches resolved templates.Reads the current base path setting (test/inspection helper).org.thymeleaf.templatemode.TemplateModeReads the current template-mode setting (test/inspection helper).booleanReads the current cache-templates setting (test/inspection helper).templateMode(org.thymeleaf.templatemode.TemplateMode value) Sets the template mode used by the bridge's default engine.
-
Constructor Details
-
Builder
protected Builder()Constructor — package access forThymeleafDispatcher.create().
-
-
Method Details
-
basePath
Sets the classpath base path under which template resources are resolved.- Parameters:
value- The base path.nullor blank values reset to the defaultThymeleafDispatcher.DEFAULT_BASE_PATH.- Returns:
- This object.
-
cacheTemplates
Sets whether the bridge's default engine caches resolved templates.- Parameters:
value- The new value.- Returns:
- This object.
-
templateMode
Sets the template mode used by the bridge's default engine.- Parameters:
value- The new value.nullresets toThymeleafDispatcher.DEFAULT_TEMPLATE_MODE.- Returns:
- This object.
-
getBasePath
Reads the current base path setting (test/inspection helper).- Returns:
- The base path. Never
null.
-
isCacheTemplates
Reads the current cache-templates setting (test/inspection helper).- Returns:
- The cache flag.
-
getTemplateMode
Reads the current template-mode setting (test/inspection helper).- Returns:
- The template mode. Never
null.
-
build
Builds theThymeleafDispatcher.- Returns:
- A new
ThymeleafDispatcherinstance.
-