Package org.glassfish.jersey.server.mvc
Class MvcFeature
java.lang.Object
org.glassfish.jersey.server.mvc.MvcFeature
- All Implemented Interfaces:
Feature
MvcFeature used to add MVC support to the server.- Author:
- Michal Gajdos
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIftruethen enable caching of template objects, i.e. to avoid multiple compilations of a template.static final StringProperty defines output encoding produced byTemplateProcessor.static final StringStringproperty defining the base path to MVC templates.static final StringProperty used to pass user-configured factory able to create template objects. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TEMPLATE_BASE_PATH
Stringproperty defining the base path to MVC 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".- See Also:
-
CACHE_TEMPLATES
Iftruethen enable caching of template objects, i.e. to avoid multiple compilations of a template. The default value isfalse. The name of the configuration property is "jersey.config.server.mvc.caching". Note: This property is used as common prefix for specifictemplate processorsproperties and might not be supported by all template processors.- Since:
- 2.5
- See Also:
-
TEMPLATE_OBJECT_FACTORY
Property used to pass user-configured factory able to create template objects. Value of the property is supposed to be an instance of "templating engine"-specific factory, a class of the factory or class-name of the factory. The default value is not set. The name of the configuration property is "jersey.config.server.mvc.factory". Note: This property is used as common prefix for specifictemplate processorsproperties and might not be supported by all template processors.- 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". Note: This property is used as common prefix for specifictemplate processorsproperties and might not be supported by all template processors.- Since:
- 2.7
- See Also:
-
-
Constructor Details
-
MvcFeature
public MvcFeature()
-
-
Method Details