[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-dev
Subject: [jira] [Commented] (WW-4404) Implement HttpInterceptor
From: "Michael Hintenaus (JIRA)" <jira () apache ! org>
Date: 2014-11-28 8:38:13
Message-ID: JIRA.12743041.1411330969000.37642.1417163893437 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/WW-4404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228153#comment-14228153 \
]
Michael Hintenaus commented on WW-4404:
---------------------------------------
Using @AllowedHttpMethod as Meta-Annotation would be a possibility, so the \
interceptor has to check the @AllowedHttpMethod itself and all annotations which have \
annotated the @AllowedHttpMethod. Example:
{code}
@AllowedHttpMethod(HttpMethod.GET)
public @interface HttpGet {}
{code}
An advantage is that the user can create his own Annotation which aren't provided \
from the framework: {code}
@AllowedHttpMethod(HttpMethod.TRACE)
public @interface HttpTrace {}
{code}
> Implement HttpInterceptor
> -------------------------
>
> Key: WW-4404
> URL: https://issues.apache.org/jira/browse/WW-4404
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Interceptors
> Affects Versions: 2.3.20
> Reporter: Lukasz Lenart
> Priority: Minor
> Fix For: 2.5
>
>
> Allows limit access to actions based on used Http method type
> https://github.com/apache/struts/pull/25
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic