org.glassfish.jersey.server.mvc
Class MvcFeature

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

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

MvcFeature used to add MVC support to the server.

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

Field Summary
static String CACHE_TEMPLATES
          If true then enable caching of template objects, i.e.
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 Summary
MvcFeature()
           
 
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 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".

See Also:
Constant Field Values

CACHE_TEMPLATES

public static final String CACHE_TEMPLATES
If 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.

Since:
2.5
See Also:
Constant Field Values

TEMPLATE_OBJECT_FACTORY

public static final String 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 specific template processors properties and might not be supported by all template processors.

Since:
2.5
See Also:
Constant Field Values
Constructor Detail

MvcFeature

public MvcFeature()
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.