Modifier and Type | Field and Description |
---|---|
static String |
CACHE_TEMPLATES
If
true then enable caching of template objects, i.e. |
static String |
ENCODING
Property defines output encoding produced by
TemplateProcessor . |
static String |
TEMPLATE_BASE_PATH
String property defining the base path to MVC templates. |
static String |
TEMPLATE_OBJECT_FACTORY
Property used to pass user-configured factory able to create template objects.
|
Constructor and Description |
---|
MvcFeature() |
public static final String TEMPLATE_BASE_PATH
String
property 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 current
servlet context
.
There is no default value.
The name of the configuration property is "jersey.config.server.mvc.templateBasePath".public static final String CACHE_TEMPLATES
true
then enable caching of template objects, i.e. to avoid multiple compilations of a template.
The default value is false
.
The name of the configuration property is "jersey.config.server.mvc.caching".
Note: This property is used as common prefix for specific
template processors
properties and might not be supported by
all template processors.public static final String TEMPLATE_OBJECT_FACTORY
template processors
properties and might not be supported by
all template processors.public static final String ENCODING
TemplateProcessor
. The value
must be a valid encoding defined that can be passed to the Charset.forName(String)
method.
The default value is UTF-8
.
The name of the configuration property is "jersey.config.server.mvc.encoding".
Note: This property is used as common prefix for specific
template processors
properties and might not be supported by
all template processors.public boolean configure(FeatureContext context)
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.