Package org.forgerock.oauth2.restlet
Class TemplateFactory
- java.lang.Object
-
- org.forgerock.oauth2.restlet.TemplateFactory
-
public class TemplateFactory extends Object
Factory for creating TemplateRepresentations.- Since:
- 11.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.restlet.ext.freemarker.TemplateRepresentationgetTemplateRepresentation(String templateName)Gets the template representation for the template with specified name.static TemplateFactorynewInstance(org.restlet.Context context)Creates a new instance of the TemplateFactory.
-
-
-
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.
-
-