Package org.restlet.ext.freemarker
Class FreemarkerConverter
- java.lang.Object
-
- org.restlet.engine.Helper
-
- org.restlet.engine.converter.ConverterHelper
-
- org.restlet.ext.freemarker.FreemarkerConverter
-
public class FreemarkerConverter extends org.restlet.engine.converter.ConverterHelperConverter between the FreeMarker Template objects and Representations. The adjoined data model is based on the request and response objects.- Author:
- Thierry Boileau.
-
-
Constructor Summary
Constructors Constructor Description FreemarkerConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Class<?>>getObjectClasses(org.restlet.representation.Variant source)java.util.List<org.restlet.engine.resource.VariantInfo>getVariants(java.lang.Class<?> source)floatscore(java.lang.Object source, org.restlet.representation.Variant target, org.restlet.resource.Resource resource)<T> floatscore(org.restlet.representation.Representation source, java.lang.Class<T> target, org.restlet.resource.Resource resource)<T> TtoObject(org.restlet.representation.Representation source, java.lang.Class<T> target, org.restlet.resource.Resource resource)org.restlet.representation.RepresentationtoRepresentation(java.lang.Object source, org.restlet.representation.Variant target, org.restlet.resource.Resource resource)
-
-
-
Method Detail
-
getObjectClasses
public java.util.List<java.lang.Class<?>> getObjectClasses(org.restlet.representation.Variant source)
- Specified by:
getObjectClassesin classorg.restlet.engine.converter.ConverterHelper
-
getVariants
public java.util.List<org.restlet.engine.resource.VariantInfo> getVariants(java.lang.Class<?> source)
- Specified by:
getVariantsin classorg.restlet.engine.converter.ConverterHelper
-
score
public float score(java.lang.Object source, org.restlet.representation.Variant target, org.restlet.resource.Resource resource)- Specified by:
scorein classorg.restlet.engine.converter.ConverterHelper
-
score
public <T> float score(org.restlet.representation.Representation source, java.lang.Class<T> target, org.restlet.resource.Resource resource)- Specified by:
scorein classorg.restlet.engine.converter.ConverterHelper
-
toObject
public <T> T toObject(org.restlet.representation.Representation source, java.lang.Class<T> target, org.restlet.resource.Resource resource) throws java.io.IOException- Specified by:
toObjectin classorg.restlet.engine.converter.ConverterHelper- Throws:
java.io.IOException
-
toRepresentation
public org.restlet.representation.Representation toRepresentation(java.lang.Object source, org.restlet.representation.Variant target, org.restlet.resource.Resource resource) throws java.io.IOException- Specified by:
toRepresentationin classorg.restlet.engine.converter.ConverterHelper- Throws:
java.io.IOException
-
-