org.restlet.service
Class ConverterService

java.lang.Object
  extended by org.restlet.service.ConverterService

public class ConverterService
extends Object

Service converting message entities into higher-level objects.

Author:
Jerome Louvel (contact@noelios.com)

Constructor Summary
ConverterService()
           
 
Method Summary
 Object toObject(Representation representation)
          Converts a representation into a higher-level object.
 Representation toRepresentation(Object object)
          Converts a higher-level object into a representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterService

public ConverterService()
Method Detail

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.