dev@jsr311.java.net

RE: Representation<T> and Entity<T>

From: Jerome Louvel <jerome.louvel_at_noelios.com>
Date: Tue, 10 Apr 2007 18:17:57 +0200

Marc,

> Presumably the presence of @Output indicates the method should be
> exposed as a HTTP method and the method is defaulting to GET
> based on the omission of any @Method annotation ?

Correct.

> Presumably there would either be application specified serializers
> for Document and JSONObject or it would use default ones defined by
> the API.

I think I agree: beside the serialization done at the resource POJO level
(e.g. toXML() and toJSON() methods), the API implementation should provide a
mechanism to serialize/deserialize representation POJOs transparently.

In the Restlet API, it will be hooked to our ConverterService:
http://www.restlet.org/documentation/1.0/api/org/restlet/service/ConverterSe
rvice.html

Best regards,
Jerome