org.restlet.ext.velocity
Class VelocityConverter
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.converter.ConverterHelper
org.restlet.ext.velocity.VelocityConverter
public class VelocityConverter
- extends org.restlet.engine.converter.ConverterHelper
Converter between the Velocity Template objects and Representations. The
adjoined data model is based on the request and response objects.
- Author:
- Thierry Boileau.
|
Method Summary |
List<Class<?>> |
getObjectClasses(org.restlet.representation.Variant source)
|
List<org.restlet.engine.resource.VariantInfo> |
getVariants(Class<?> source)
|
float |
score(Object source,
org.restlet.representation.Variant target,
org.restlet.resource.Resource resource)
|
|
score(org.restlet.representation.Representation source,
Class<T> target,
org.restlet.resource.Resource resource)
|
|
toObject(org.restlet.representation.Representation source,
Class<T> target,
org.restlet.resource.Resource resource)
|
org.restlet.representation.Representation |
toRepresentation(Object source,
org.restlet.representation.Variant target,
org.restlet.resource.Resource resource)
|
|
updatePreferences(List<org.restlet.data.Preference<org.restlet.data.MediaType>> preferences,
Class<T> entity)
|
| Methods inherited from class org.restlet.engine.converter.ConverterHelper |
addObjectClass, addVariant, addVariants, getVariants, updatePreferences |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityConverter
public VelocityConverter()
getObjectClasses
public List<Class<?>> getObjectClasses(org.restlet.representation.Variant source)
- Specified by:
getObjectClasses in class org.restlet.engine.converter.ConverterHelper
getVariants
public List<org.restlet.engine.resource.VariantInfo> getVariants(Class<?> source)
- Specified by:
getVariants in class org.restlet.engine.converter.ConverterHelper
score
public <T> float score(org.restlet.representation.Representation source,
Class<T> target,
org.restlet.resource.Resource resource)
- Specified by:
score in class org.restlet.engine.converter.ConverterHelper
score
public float score(Object source,
org.restlet.representation.Variant target,
org.restlet.resource.Resource resource)
- Specified by:
score in class org.restlet.engine.converter.ConverterHelper
toObject
public <T> T toObject(org.restlet.representation.Representation source,
Class<T> target,
org.restlet.resource.Resource resource)
throws IOException
- Specified by:
toObject in class org.restlet.engine.converter.ConverterHelper
- Throws:
IOException
toRepresentation
public org.restlet.representation.Representation toRepresentation(Object source,
org.restlet.representation.Variant target,
org.restlet.resource.Resource resource)
throws IOException
- Specified by:
toRepresentation in class org.restlet.engine.converter.ConverterHelper
- Throws:
IOException
updatePreferences
public <T> void updatePreferences(List<org.restlet.data.Preference<org.restlet.data.MediaType>> preferences,
Class<T> entity)
- Overrides:
updatePreferences in class org.restlet.engine.converter.ConverterHelper
Copyright © 2005-2014 Restlet.