Return-Path: Delivered-To: apmail-incubator-cxf-issues-archive@locus.apache.org Received: (qmail 36656 invoked from network); 25 Jan 2008 04:31:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jan 2008 04:31:00 -0000 Received: (qmail 97104 invoked by uid 500); 25 Jan 2008 04:30:50 -0000 Delivered-To: apmail-incubator-cxf-issues-archive@incubator.apache.org Received: (qmail 97088 invoked by uid 500); 25 Jan 2008 04:30:50 -0000 Mailing-List: contact cxf-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-issues@incubator.apache.org Received: (qmail 97079 invoked by uid 99); 25 Jan 2008 04:30:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2008 20:30:50 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2008 04:30:31 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 500C5714264 for ; Thu, 24 Jan 2008 20:30:38 -0800 (PST) Message-ID: <3569869.1201235438323.JavaMail.jira@brutus> Date: Thu, 24 Jan 2008 20:30:38 -0800 (PST) From: "Frank Lynch (JIRA)" To: cxf-issues@incubator.apache.org Subject: [jira] Commented: (CXF-1405) @ProduceMime not used when selecting target method on a resource In-Reply-To: <21711634.1201208914870.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562353#action_12562353 ] Frank Lynch commented on CXF-1405: ---------------------------------- ok, updated 1-liner patch attached. > @ProduceMime not used when selecting target method on a resource > ---------------------------------------------------------------- > > Key: CXF-1405 > URL: https://issues.apache.org/jira/browse/CXF-1405 > Project: CXF > Issue Type: Bug > Components: REST > Affects Versions: 2.1 > Environment: n/a > Reporter: Frank Lynch > Priority: Minor > Attachments: diff.txt > > > http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200801.mbox/%3C1201116808.6758.24.camel@horse%3E > import com.sun.ws.rest.api.ConsumeMime; > import com.sun.ws.rest.api.HttpMethod; > import com.sun.ws.rest.api.ProduceMime; > import com.sun.ws.rest.api.UriTemplate; > > @UriTemplate("/sampleservlet") > public class SampleServlet { > > @HttpMethod("PUT") > @ConsumeMime("text/plain") > @ProduceMime("application/xml") > public void getXML() { > System.out.println("### Handle PUT for sampleservlet: XML ###"); > } > > @HttpMethod("PUT") > @ConsumeMime("text/plain") > @ProduceMime("application/json") > public void getJSON() { > System.out.println("### Handle PUT for sampleservlet: JSON ###"); > } > } > > When the client specifies the Accept parameter in the http header as > application/json or application/xml one would expect the corresponding method > to be called. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.