Hello Leshek,

you can either
 - invoke the "getQueryAsForm" method on the resource's reference 
(request.getResourceRef().getQueryAsForm()),
 - or create a new Form from the query:
Form form = new Form(this.getRequest().getAttributes().get("Query"))

I think I prefer the first one.

best regards,
Thierry

> What is the Restlet way to get the uri Query content, where query attributes 
> are not predefined?
>
> If I have: uri for example: http://...?filter=a*&position=33&limit=66
> and
> router.attach("/...?{query}", MyQuery.class);
> and
>     this.getRequest().getAttributes().get("Query");
> then I can parse it manually, is this the way to do it?
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=982576
>
>

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

Reply via email to