org.restlet.service
Class ConverterService
java.lang.Object
org.restlet.service.ConverterService
public class ConverterService
- extends Object
Service converting message entities into higher-level objects.
- Author:
- Jerome Louvel (contact@noelios.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterService
public ConverterService()
toObject
public Object toObject(Representation representation)
- Converts a representation into a higher-level object. Returns null by
default.
- Parameters:
representation
- The representation to convert.
- Returns:
- A higher-level object.
toRepresentation
public Representation toRepresentation(Object object)
- Converts a higher-level object into a representation. Returns null by
default.
- Parameters:
object
- The higher-level object.
- Returns:
- A representation.
Copyright © 2005-2007 Noelios Consulting.