Hi,
I'm trying to implement two distinct resources, one should response at URL
/media/{user_id}/{file_id} the other one should response at URL
/media/{user_id}/avatar.
Here is the createInboundRoot code:
public synchronized Restlet createInboundRoot() {
Router router = new Router(getContext());
router.attach("/media/{user_id}/{file_id}",
MediaResource.class);
// POST /media/<[email protected]>
router.attach("/media/{user_id}", MediasResource.class);
// GET/PUT/POST/DELETE /media/<[email protected]>/avatar
router.attach("/media/{user_id}/avatar", AvatarResource.class);
return router;
}
Any thoughts on this?
Thanks in advance!
Regards,
Rodrigo
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2969868