Class TemplateFactory


  • public class TemplateFactory
    extends Object
    Factory for creating TemplateRepresentations.
    Since:
    11.0.0
    • Method Detail

      • newInstance

        public static TemplateFactory newInstance​(org.restlet.Context context)
        Creates a new instance of the TemplateFactory.
        Parameters:
        context - The Restlet context.
        Returns:
        A new instance of the TemplateFactory.
      • getTemplateRepresentation

        public org.restlet.ext.freemarker.TemplateRepresentation getTemplateRepresentation​(String templateName)
        Gets the template representation for the template with specified name.
        Parameters:
        templateName - The template name.
        Returns:
        A TemplateRepresentation.