@ConstrainedTo(value=SERVER)
public class JasperMvcFeature
extends java.lang.Object
implements javax.ws.rs.core.Feature
Feature used to add support for MVC and Jasper
templates.
Note: This feature also registers MvcFeature.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHE_TEMPLATES
If
true then enable caching of Freemarker templates to avoid
multiple compilation. |
static java.lang.String |
TEMPLATES_BASE_PATH
String property defining the base path to Jasper templates. |
| Constructor and Description |
|---|
JasperMvcFeature() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(javax.ws.rs.core.FeatureContext context)
Property defines output encoding produced by
TemplateProcessor. |
public static final java.lang.String TEMPLATES_BASE_PATH
String property defining the base path to Jasper templates. If
set, the value of the property is added in front of the template name
defined in:
ViewableTemplate, orErrorTemplateservlet context.
There is no default value.
The name of the configuration property is "jersey.config.server.mvc.templateBasePath.jrxml".public static final java.lang.String CACHE_TEMPLATES
true then enable caching of Freemarker templates to avoid
multiple compilation.
The default value is false.
The name of the configuration property is "jersey.config.server.mvc.caching.jrxml".Copyright © 2014. All Rights Reserved.