GitHub user lukaszlenart opened a pull request: https://github.com/apache/struts/pull/8
HttpInterceptor New annotation and interceptor to allow limit access to action based on used http request type, ie: @GetOnly public class MyAction extends ActionSupport { @PostOnly public String execute() { } } You can merge this pull request into a Git repository by running: $ git pull https://github.com/apache/struts feature/http-interceptor Alternatively you can review and apply these changes as the patch at: https://github.com/apache/struts/pull/8.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #8 ---- commit 507e338a10b9c0b9f62233c3e9d24ca9436940be Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-19T15:46:59Z Defined enum with all http methods commit 2ae020ce8c8d94a1e8beb070f38d7d08e587f922 Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-19T15:49:50Z Defines annotations to control access based on http method Defines main annotation AllowedMethod and helper annotations used in most common situation, eg. GetOnly, PostOnly, etc. commit 84a7cc3da00cf84fdd67aef1cd2071840b687249 Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-19T15:50:32Z Adds new http interceptor to allow block access based on method type commit 9930ceb7fe3e203c3e33df6c12ce0f44adfc529d Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-19T16:05:58Z Adds new interface to allow action cooperate with HttpMethodInterceptor commit 5664284a685bf6dd510ee94711dd6d9139c93a13 Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-19T19:12:49Z Adds JavaDoc commit b855351ecb13132033df7ab6d127d86987cf8ef1 Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-19T19:51:01Z Adds support for annotations on methods commit e798a9f62214b727b8de5034f17104a326aa3336 Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-19T19:51:10Z Adds test cases commit f888e67751fceaac3a9fca8b991ddb4b4697d042 Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-20T20:13:58Z Updates JavaDocs in annotations commit 8d35e613c1e375f18d83b5ac962a716bfda680db Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-20T20:35:01Z Renames basic annotation to better express its meaning commit b10096b36f71918427052dcaf8e702f936862658 Author: Lukasz Lenart <lukaszlen...@apache.org> Date: 2014-04-20T20:35:18Z Adds httpInterceptor to stacks ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org