Class MustacheMvcFeature

    • 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
      • CACHE_TEMPLATES

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

        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 Mustache templates.

        The default value is not set.

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

        Since:
        2.5
        See Also:
        Constant Field Values
      • ENCODING

        public static final String ENCODING
        Property defines output encoding produced by 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.mustache".

        Since:
        2.7
        See Also:
        Constant Field Values
    • Constructor Detail

      • MustacheMvcFeature

        public MustacheMvcFeature()