org.glassfish.jersey.server.mvc.mustache
Class MustacheMvcFeature

java.lang.Object
  extended by org.glassfish.jersey.server.mvc.mustache.MustacheMvcFeature
All Implemented Interfaces:
javax.ws.rs.core.Feature

@ConstrainedTo(value=SERVER)
public class MustacheMvcFeature
extends Object
implements javax.ws.rs.core.Feature

Feature used to add support for MVC and Mustache templates.

Note: This feature also registers MvcFeature.

Since:
2.3
Author:
Michal Gajdos (michal.gajdos at oracle.com)

Field Summary
static String CACHING_TEMPLATES_ENABLED
          If true then enable caching of Mustache templates to avoid multiple compilation.
static String TEMPLATE_BASE_PATH
          String property defining the base path to Mustache templates.
 
Constructor Summary
MustacheMvcFeature()
           
 
Method Summary
 boolean configure(javax.ws.rs.core.FeatureContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_BASE_PATH

public static final String TEMPLATE_BASE_PATH
String property 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 current servlet context.

There is no default value.

The name of the configuration property is "jersey.config.server.mvc.templateBasePath.mustache".

See Also:
Constant Field Values

CACHING_TEMPLATES_ENABLED

public static final String CACHING_TEMPLATES_ENABLED
If true then enable caching of Mustache templates to avoid multiple compilation.

The default value is false.

The name of the configuration property is "jersey.config.server.mvc.caching.mustache.enabled".

See Also:
Constant Field Values
Constructor Detail

MustacheMvcFeature

public MustacheMvcFeature()
Method Detail

configure

public boolean configure(javax.ws.rs.core.FeatureContext context)
Specified by:
configure in interface javax.ws.rs.core.Feature


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.