RE: Resolve to Resources inside another Resource

2009-07-25 Thread Jerome Louvel
Hi Raymi,

Sorry, but I'm not sure I understood your question. On the server-side, you
could GET the resource at http:///user/21; by doing this:

   getContext().getClientDispatcher().get(http:///user/21;)

I hope this will help.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-Message d'origine-
De : webp...@tigris.org [mailto:webp...@tigris.org] 
Envoyé : dimanche 19 juillet 2009 17:59
À : discuss@restlet.tigris.org
Objet : Resolve to Resources inside another Resource

Hi all,

I'm evaluating restlet and have sort of a beginner question, but was unable
to find the answer here or in the documentation.

Suppose I want to add a resource via a POST of the following XML to the URL
http://.../items

item
  titleSome title/title
  userhttp:///user/21
/item

It's quite clear for me how I register a resource to handle this request.
But how do I resolve the REST URL (http:///user/21) for the referenced
user in the method that handles this POST? Is there a possiblity to directly
get a JAVA representation of this URL?

Thanks in advance,

raymi

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=23724
36

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2375509


Resolve to Resources inside another Resource

2009-07-20 Thread webpost
Hi all,

I'm evaluating restlet and have sort of a beginner question, but was unable to 
find the answer here or in the documentation.

Suppose I want to add a resource via a POST of the following XML to the URL 
http://.../items

item
  titleSome title/title
  userhttp:///user/21
/item

It's quite clear for me how I register a resource to handle this request. But 
how do I resolve the REST URL (http:///user/21) for the referenced user in 
the method that handles this POST? Is there a possiblity to directly get a JAVA 
representation of this URL?

Thanks in advance,

raymi

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2372436