Vincent Massol wrote:
... and I don't know how RESTlet works... :)
Who's instantiating PageResource? Is it us or the RESTlet framework?
AFAIK It's RESTlet.
I just configure a route by passing the class:
router.attach(UriConstants.PAGE_VERSION_URI_TEMPLATE, PageResource.class);
Then RESTlet does all the magic when an actual request is received
(i.e., instantiate the class and pass the actual context, request,
response to the resource's constructor).
-Fabio