Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 78959 invoked from network); 3 Mar 2008 12:07:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 12:07:51 -0000 Received: (qmail 94992 invoked by uid 500); 3 Mar 2008 12:07:40 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 94955 invoked by uid 500); 3 Mar 2008 12:07:40 -0000 Mailing-List: contact cxf-dev-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-dev@incubator.apache.org Received: (qmail 94943 invoked by uid 99); 3 Mar 2008 12:07:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 04:07:40 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of barfitzgerald@gmail.com designates 209.85.198.185 as permitted sender) Received: from [209.85.198.185] (HELO rv-out-0910.google.com) (209.85.198.185) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 12:07:05 +0000 Received: by rv-out-0910.google.com with SMTP id k20so3815128rvb.0 for ; Mon, 03 Mar 2008 04:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=8tTyy4GLcTdkc3wOOtBgwgS81MxU2SgkVt3QaEds1b0=; b=AHDtY/QKzW/2db7WLq+XWsa/uDTgLlmgrSTtrTfyoCyItRg5CIC/rRAIjIabywyNsqt1Ob/gKt1Lz3pfsMdHo5U7xVIoYx2Ze8HYyB8SWkwoN4uA/RRBgPB6bl3Q50G9qURSHYnAc+4qgaiVKP7DdLhuB4pLn1QU97OkbJ9/P58= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=FYnZIV/WnymjwPYRXtgxNYDuCHIc6km+4AHj2UeML3i4d8xBgXUUu7tRtCSLZKD/ARZz02Hpx0+F1DmF/7mkHsw+xP/VsmcsdaAAUTNU4VCtulMV3O3d6wgAiYnCD6QptviS3I69TDhhigS3I9yAqc6skcK97DFckbdt3HYJjyc= Received: by 10.140.192.9 with SMTP id p9mr3504772rvf.193.1204546034325; Mon, 03 Mar 2008 04:07:14 -0800 (PST) Received: by 10.140.208.6 with HTTP; Mon, 3 Mar 2008 04:07:14 -0800 (PST) Message-ID: <6f5a2e920803030407t35aed937y86099a2b3bd2c3de@mail.gmail.com> Date: Mon, 3 Mar 2008 12:07:14 +0000 From: "Barry Fitzgerald" To: cxf-dev@incubator.apache.org Subject: JAX-RS @HeaderParam support MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19462_5401928.1204546034322" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_19462_5401928.1204546034322 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I was thinking of implementing header parameter support. But I just wanted to check one thing. What do people think should happen in the case of headers being specified multiple times e.g. If the below method is invoked with the header for foo set twice. E.g. foo=bar and foo=baz public Response getUser(@UriParam("id") String id, @HeaderParam("foo") String header) throws Exception { System.out.println("Header is: " + header); .... } The spec says: *@HeaderParam The class of the annotated parameter MUST have a constructor that accepts a single String argument, or a static method named valueOf that accepts a single String argument. Other types may be supported using a HeaderProvider as described in section 3.2. *This seems to suggest we should not be annotating lists etc. to handle values specified multiple times. I think we should just use the first one found or maybe raise this as an issue with the spec. Let me know what you think, Barry ------=_Part_19462_5401928.1204546034322--