Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 6182 invoked from network); 25 Nov 2008 15:52:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Nov 2008 15:52:57 -0000 Received: (qmail 83321 invoked by uid 500); 25 Nov 2008 15:53:05 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 83262 invoked by uid 500); 25 Nov 2008 15:53:04 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 83233 invoked by uid 99); 25 Nov 2008 15:53:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 07:53:04 -0800 X-ASF-Spam-Status: No, hits=-3.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [198.185.18.46] (HELO mx03.lexisnexis.com) (198.185.18.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Nov 2008 15:51:37 +0000 Received: from mailgate2.lexis-nexis.com ([138.12.44.45]) by spm5507-int.lexis-nexis.com with ESMTP; 25 Nov 2008 10:51:09 -0500 Received: from lngdayexcp001.legal.regn.net (smtpgate.lexis-nexis.com [138.12.18.80]) by mailgate2.lexis-nexis.com (8.12.11.20060308/8.12.11) with ESMTP id mAPFp8dM016481 for ; Tue, 25 Nov 2008 10:51:08 -0500 Received: from LNGDAYEXCP01VA.legal.regn.net ([138.12.18.63]) by lngdayexcp001.legal.regn.net with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Nov 2008 10:51:08 -0500 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: JAX-RS @Delete @QueryParam Date: Tue, 25 Nov 2008 10:51:06 -0500 Message-ID: In-Reply-To: <010501c94ef1$bf726580$e002050a@emea.progress.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JAX-RS @Delete @QueryParam Thread-Index: AclO8eHs7hn4/5AuRuCG8P2ivVPHSAAIyXFg References: <20679058.post@talk.nabble.com> <010501c94ef1$bf726580$e002050a@emea.progress.com> From: "Maxfield, Bruce D. (LNG-DAY)" To: X-OriginalArrivalTime: 25 Nov 2008 15:51:08.0834 (UTC) FILETIME=[A20B8020:01C94F15] X-Scanned-By: MIMEDefang 2.51 on 138.12.44.45 X-Virus-Checked: Checked by ClamAV on apache.org Sergey: There is nothing in the HTTP spec that precludes the use of query parameters in conjunction with DELETE. Given the overloaded meaning of DELETE as described in section 9.7, one could see where it would be reasonable for a client to pass a query parameter as a modifier much like the options passed to 'kill'. Whether the proposed use described below is valid or not is another question. If you wish, I could test this scenario under Jersey. - Bruce -----Original Message----- From: Sergey Beryozkin [mailto:sergey.beryozkin@progress.com]=20 Sent: Tuesday, November 25, 2008 6:34 AM To: users@cxf.apache.org Subject: Re: JAX-RS @Delete @QueryParam Hi Can you check if therr're even available at the server ? I don't think one can submit query parameters with DELETE. DELETE is an individual resource targeted method AFAIK. So if you'd like to do something like delete all (people) resources of a given age then I'm not even sure what is a restful way to do it. I'd go for POST to the collection resource then - even if it may not see very restful But please check if query parameters are available on the server. For ex, direct the request through a tcptrace tool and see how URI=20 looks like Cheers, Sergey > > Hi, > I've implemented the GET method of REST SERVICEs, but am having difficulty > when trying to implemetn the DELETE method. The QueryParam that I am > specifying isn't getting passed to the service. Does anyone have any ideas > why this could be? Here is the code: > > @DELETE > public void delete(@QueryParam("age") @DefaultValue("-1") int age) > { > } > > Thanks > --=20 > View this message in context: http://www.nabble.com/JAX-RS-%40Delete-%40QueryParam-tp20679058p20679058 .html > Sent from the cxf-user mailing list archive at Nabble.com. > >=20