Class MustacheMvcFeature
java.lang.Object
org.glassfish.jersey.server.mvc.mustache.MustacheMvcFeature
- All Implemented Interfaces:
Feature
Feature used to add support for MVC and Mustache templates.
Note: This feature also registers MvcFeature.- Since:
- 2.3
- Author:
- Michal Gajdos
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIftruethen enable caching of Mustache templates to avoid multiple compilation.static final StringProperty defines output encoding produced byTemplateProcessor.static final StringStringproperty defining the base path to Mustache templates.static final StringProperty used to pass user-configuredfactoryable to createMustache templates. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TEMPLATE_BASE_PATH
Stringproperty defining the base path to Mustache templates. If set, the value of the property is added in front of the template name defined in: Value can be absolute providing a full path to a system directory with templates or relative to currentservlet context. There is no default value. The name of the configuration property is "jersey.config.server.mvc.templateBasePath.mustache".- See Also:
-
CACHE_TEMPLATES
Iftruethen enable caching of Mustache templates to avoid multiple compilation. The default value isfalse. The name of the configuration property is "jersey.config.server.mvc.caching.mustache".- Since:
- 2.5
- See Also:
-
TEMPLATE_OBJECT_FACTORY
Property used to pass user-configuredfactoryable to createMustache templates. The default value is not set. The name of the configuration property is "jersey.config.server.mvc.factory.mustache".- Since:
- 2.5
- See Also:
-
ENCODING
Property defines output encoding produced byTemplateProcessor. The value must be a valid encoding defined that can be passed to theCharset.forName(String)method. The default value isUTF-8. The name of the configuration property is "jersey.config.server.mvc.encoding.mustache".- Since:
- 2.7
- See Also:
-
-
Constructor Details
-
MustacheMvcFeature
public MustacheMvcFeature()
-
-
Method Details