Evan, I've looked at your patch a bit, and it looks OK to me. I'd probably
change a couple of little things, but in general it's fine. This is a
feature that has come up before. Would you mind creating an issue in Jira
and attaching your patch there? That will prevent this from getting lost.
-Ben
On Mon, Oct 4, 2010 at 11:09 PM, Evan Leonard <[email protected]>wrote:
>
> 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
> >
> >
> >
> >
> >
> >
>
>
> ------------------------------------------------------------------------------
> 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
>
>
------------------------------------------------------------------------------
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