Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F065196E9 for ; Thu, 5 Apr 2012 16:32:49 +0000 (UTC) Received: (qmail 69780 invoked by uid 500); 5 Apr 2012 16:32:49 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 69694 invoked by uid 500); 5 Apr 2012 16:32:49 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 69617 invoked by uid 99); 5 Apr 2012 16:32:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 16:32:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 16:32:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D716435A151 for ; Thu, 5 Apr 2012 16:32:25 +0000 (UTC) Date: Thu, 5 Apr 2012 16:32:25 +0000 (UTC) From: =?utf-8?Q?Jakub_Boche=C5=84ski_=28Commented=29_=28JIRA=29?= To: issues@cxf.apache.org Message-ID: <1236668754.17635.1333643545895.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <971794484.11206.1333542083982.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CXF-4224) Custom HTTP methods (HttpMethod annot) not supported? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4224?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D132473= 40#comment-13247340 ]=20 Jakub Boche=C5=84ski commented on CXF-4224: -------------------------------------- The method has no @Path annotation - just what you see in the example: @Con= sumes, @Description, @POST_create. I already checked that the method is not returned in the list of resource m= ethod during matching (resource class is selected, but no match is found b/= c of this). =20 > Custom HTTP methods (HttpMethod annot) not supported? > ----------------------------------------------------- > > Key: CXF-4224 > URL: https://issues.apache.org/jira/browse/CXF-4224 > Project: CXF > Issue Type: Bug > Affects Versions: 2.5.3 > Reporter: Jakub Boche=C5=84ski > > I wanted to save myself some typing and introduce a custom method annotat= ion for use with a response handler: > @Target(value =3D METHOD) > @Retention(value =3D RUNTIME) > @HttpMethod(value =3D POST) > public @interface POST_create { > } > since HATEOS resource creation is done with POST. > However a method: > @POST_create=20 > @Consumes(CONTENT_FORM_URLENCODED) > @Description(title =3D "Factory method") > Dto createSomething( ... ); > is not found as valid resource method. > When I annotate it with regular POST annot. it works: > @POST > @POST_create=20 > @Consumes(CONTENT_FORM_URLENCODED) > @Description(title =3D "Factory method") > Dto createSomething( ... ); > BTW. While trying to debug this I noticed that the HttpMethod annotation = is still recognized as a valid resource method annotation ( c.f. CXF-1007 )= in org.apache.cxf.jaxrs.utils.AnnotationUtils.initMethodAnnotationClasses(= ) line 114 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira