struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Hintenaus (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4404) Implement HttpInterceptor
Date Fri, 28 Nov 2014 08:38:13 GMT

    [ 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)

Mime
View raw message