[aerogear-dev] [aerogear-controller] Request Parameter support

Matthias Wessendorf matzew at apache.org
Thu Jan 3 05:35:14 EST 2013


On Thu, Jan 3, 2013 at 11:24 AM, Daniel Bevenius
<daniel.bevenius at gmail.com>wrote:

> We've pushed a version of AeroGear Controller with support for request
> parameters (AEROGEAR-671 <https://issues.jboss.org/browse/AEROGEAR-671>)
> to openshift<http://controllerdemo-danbev.rhcloud.com/aerogear-controller-demo/>
> .
>
> This demo has the following new route added to it:
>
> route()
>       .from("/cars")
>       .on(RequestMethod.GET)
>       .produces(MediaType.JSON.toString(), "application/custom")
>       .to(Home.class).get(param("color", "pink"), param("brand", "mini"));
>
>

Hrm, not sure if I like having the default values for the parameters inside
of the routing definition.

-Matthias


-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130103/b499162f/attachment.html 


More information about the aerogear-dev mailing list