Of course I forgot to attach the patch... :-)
Evan
On Oct 4, 2010, at 8:58 PM, Evan Leonard wrote:
>
> Hi All,
>
> Attached is a patch to the 1.5.x branch that adds support for a new
> annotation; @RestBinding.
>
> Here's a sample of its usage:
>
> @UrlBinding("/RestAction")
> public class RestActionBean implements ActionBean {
>
> @RestBinding("PUT")
> public Resolution myPutHandler() {
> log.info("Got a Put");
> return null;
> }
> }
>
> Now if you send a PUT request to "/yourapp/RestAction", it will be routed to
> the "myPutHandler" method. Would someone have a look and see if this is up to
> snuff for a commit?
>
> Thanks in advance,
> Evan
>
>
>
>
>
>
RestBinding_annotation.patch
Description: Binary data
------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb
_______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
