BriteSnow / snow

A Lightweight, Google Guice, Simple, and Powerful Web Application Framework that makes building modern Web Application a breeze! Fully open source, Apache V2 licensed.
http://britesnow.com/snow
29 stars 10 forks source link

Add support for PathParam for the /some-{param1} and then @ParamPath("param1") #18

Closed jeremychone closed 11 years ago

jeremychone commented 11 years ago

This will allow to have parametrized path.

For example: /delete-item-123 Could matched to a @WebDelete("/delete-item-{id}") public Object performDeleteItem(@PathVar("id") Long id){ // perform the delete (with the above url, id == 123) }

Code hint: here is some of the regex to be used ^/delete-item-{(.?)}-some-other-{(.?)}$ /delete-item-{id-anodther}-some-other-{name}

(without this, @WebDelete is kind of useless as no http params are allowed to HttpDelete)

jeremychone commented 11 years ago

Scheduled for the the 2.0.0 release.

jeremychone commented 11 years ago

Fixed, in 2.0.0-SNAPSHOT