Class MvcFactory


  • public class MvcFactory
    extends Object
    • Constructor Detail

      • MvcFactory

        public MvcFactory()
    • Method Detail

      • setTemplateBase

        public void setTemplateBase​(io.bootique.resource.FolderResourceFactory templateBase)
        Sets a base location of templates. Templates paths are built using the following formula:

         template_path = templateBase + resource_package_path + template_name_with_extension
         

        Base defines how the template is resolved. It can be a URL, a special "classpath:" URL, or a file path.

        Parameters:
        templateBase - A base location of templates.
      • setTemplateEncoding

        public void setTemplateEncoding​(String templateEncoding)
        Sets template encoding. Default is UTF-8.
        Parameters:
        templateEncoding - expected encoding of templates.
      • setTemplateTtl

        public void setTemplateTtl​(io.bootique.value.Duration templateTtl)
        Since:
        3.0