cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub Bocheński (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CXF-4224) Custom HTTP methods (HttpMethod annot) not supported?
Date Tue, 10 Apr 2012 12:23:16 GMT

    [ https://issues.apache.org/jira/browse/CXF-4224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250596#comment-13250596
] 

Jakub Bocheński commented on CXF-4224:
--------------------------------------

Thanks, I tried this again and must say that it is working now - at least with 2.5.3-20120403.080549-37.

Sorry for the hassle - most likely there was something wrong with auto publishig to my dev
Tomcat.
                
> 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ński
>            Assignee: Sergey Beryozkin
>
> I wanted to save myself some typing and introduce a custom method annotation for use
with a response handler:
> @Target(value = METHOD)
> @Retention(value = RUNTIME)
> @HttpMethod(value = POST)
> public @interface POST_create {
> }
> since HATEOS resource creation is done with POST.
> However a method:
> @POST_create 
> @Consumes(CONTENT_FORM_URLENCODED)
> @Description(title = "Factory method")
> Dto createSomething( ... );
> is not found as valid resource method.
> When I annotate it with regular POST annot. it works:
> @POST
> @POST_create 
> @Consumes(CONTENT_FORM_URLENCODED)
> @Description(title = "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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message