Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B93461094E for ; Fri, 28 Nov 2014 08:38:13 +0000 (UTC) Received: (qmail 58761 invoked by uid 500); 28 Nov 2014 08:38:13 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 58726 invoked by uid 500); 28 Nov 2014 08:38:13 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 58715 invoked by uid 99); 28 Nov 2014 08:38:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Nov 2014 08:38:13 +0000 Date: Fri, 28 Nov 2014 08:38:13 +0000 (UTC) From: "Michael Hintenaus (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4404) Implement HttpInterceptor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)