> > > Could we somehow do the same with parameters of the query string?
> > >
> > > /a/b/c?key1=value1&key2=value2
> > >
> > > org.restlet.reference.params.key1
> > > org.restlet.reference.params.key2
> >
> > There is a programmatic way to get this:
> > Call.getResourceRef().getQueryAsForm().get("key1")
> >
>
> Was just a thought. Maybe I should wait till the "application" stuff
> is completed. The reason is that the references is a powerful way of
> passing additional info. And hence this info should be more easily
> accessible to the application.
Actually, it's not directly related to the Application stuff. The problem
with URI parameters is that they look simpler at a first glance but the fact
that they can repeat and appear in any order makes their processing rapidly
complex. That's why we leverage the Form/ParameterList classes via the
getQueryAsForm() method. The raw query string is also available via
getQuery().
Are you looking for an XPath-like query syntax? If so, you can checkout the
com.noelios.restlet.util.CallModel class, that might be what you are looking
for.
Let me know if I missed something.
Thanks,
Jerome