*Jerome*:
should I file a bug for this?
Thank you,
Andrei
-------- Original Message --------
Subject: templates in ClientResource?
From: Andrei Pozolotin <[email protected]>
To: [email protected]
Date: Tue 28 Jun 2011 12:38:03 PM CDT
> Hello;
>
> 1) all ClientResource() constructors do uri encoding;
>
> so this resource uri:
> uri : http://localhost:8181/volumes/{volume}/select/{select}
>
> becomes this reference inside the client resource:
> ref : http://localhost:8181/volumes/%7Bvolume%7D/select/%7Bselect%7D
>
> an when it gets into:
> org.restlet.engine.component.ComponentClientDispatcher
> protected void doHandle(Request request, Response response) {
>
> then the TemplateDispatcher does not see it as "{}" template any more and
> hence does not do attributes resolution;
>
> 2) what is the right way to use templates in ClientResource?
>
> thank you;
>
> Andrei.
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2779550
>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2780571