camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Tam <email.w...@gmail.com>
Subject Re: restlet component and query string parameters
Date Tue, 10 Feb 2009 05:16:24 GMT
Hi Nolan, thanks for your suggestion.  I've submitted a fix.
camel-1.x: Committed revision 742855.
2.0 trunk: Committed revision 742854.
[Camel-1329].

On Mon, Feb 9, 2009 at 5:14 PM, nojonojo <n0_j0@yahoo.com> wrote:
>
>
> It looks like parameters sent in the query string of a request processed by
> the restlet component don't make it into the Camel message anywhere, and
> thus aren't usable by the application.  The use of query string parameters
> isn't very rest-like, but there are a few cases where it's desirable or
> necessary.  In particular, to use JSONP to do cross-domain JSON queries, the
> server application needs access to query string parameters.
>
> According to the Restlet documentation
> (http://wiki.restlet.org/docs_1.1/13-restlet/27-restlet/58-restlet.html),
> the query string parameters are available as such:
>
> Form form = request.getResourceRef().getQueryAsForm();
> for (Parameter parameter : form) {
>  System.out.print("parameter " + parameter.getName());
>  System.out.println("/" + parameter.getValue());
> }
>
> Could these parameters be added into the Message somewhere to make them
> accessible?
>
> Thanks (and thanks for quick resolution of all of the other questions and
> enhancements that I've had)!
>
> Nolan
> --
> View this message in context: http://www.nabble.com/restlet-component-and-query-string-parameters-tp21923270s22882p21923270.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message