A Lightweight, Google Guice, Simple, and Powerful Web Application Framework that makes building modern Web Application a breeze! Fully open source, Apache V2 licensed.
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)
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)