org.restlet.ext.atom
Class AtomConverter
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.converter.ConverterHelper
org.restlet.ext.atom.AtomConverter
public class AtomConverter
- extends ConverterHelper
Converter between the Atom API and Representation classes.
- Author:
- Jerome Louvel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomConverter
public AtomConverter()
getObjectClasses
public java.util.List<java.lang.Class<?>> getObjectClasses(Variant source)
- Specified by:
getObjectClasses
in class ConverterHelper
getVariants
public java.util.List<VariantInfo> getVariants(java.lang.Class<?> source)
- Specified by:
getVariants
in class ConverterHelper
score
public float score(java.lang.Object source,
Variant target,
UniformResource resource)
- Specified by:
score
in class ConverterHelper
score
public <T> float score(Representation source,
java.lang.Class<T> target,
UniformResource resource)
- Specified by:
score
in class ConverterHelper
toObject
public <T> T toObject(Representation source,
java.lang.Class<T> target,
UniformResource resource)
throws java.io.IOException
- Specified by:
toObject
in class ConverterHelper
- Throws:
java.io.IOException
toRepresentation
public Representation toRepresentation(java.lang.Object source,
Variant target,
UniformResource resource)
- Specified by:
toRepresentation
in class ConverterHelper
updatePreferences
public <T> void updatePreferences(java.util.List<Preference<MediaType>> preferences,
java.lang.Class<T> entity)
- Overrides:
updatePreferences
in class ConverterHelper
Copyright © 2005-2012 Noelios Technologies.