Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 43309 invoked from network); 21 Dec 2010 08:07:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Dec 2010 08:07:17 -0000 Received: (qmail 41708 invoked by uid 500); 21 Dec 2010 08:07:17 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 41651 invoked by uid 500); 21 Dec 2010 08:07:15 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 41638 invoked by uid 99); 21 Dec 2010 08:07:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 08:07:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.175] (HELO mail-iw0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 08:07:07 +0000 Received: by iwn8 with SMTP id 8so4110099iwn.6 for ; Tue, 21 Dec 2010 00:06:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.30.139 with SMTP id u11mr5015266ibc.92.1292918806440; Tue, 21 Dec 2010 00:06:46 -0800 (PST) Received: by 10.231.13.132 with HTTP; Tue, 21 Dec 2010 00:06:46 -0800 (PST) X-Originating-IP: [130.60.157.56] In-Reply-To: References: Date: Tue, 21 Dec 2010 09:06:46 +0100 Message-ID: Subject: Re: Accessing all sent FormParams in a POST request From: Tsuyoshi Ito To: clerezza-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Daniel I think you are looking for org.apache.clerezza.jaxrs.utils.form.MultiPartBody. this utility allows to iterate over all text parameters and the corresponding values. e.g. for(String paramName: form.getTextParameterNames()) { for(String value : form.getTextParameterValues(paramName)) { } } I hope that helps On Mon, Dec 20, 2010 at 6:37 PM, Daniel Spicar wrote: > Hi, > > I am trying to access all FormParams that are submitted in a POST request to > my jaxrs resource. But I couldn't figure out how. I tried to use @Context > WebRequest, but unfortunately traxrs does not seem to export the > corresponding package. Is there a way to do this? I have a web service that > does not know in advance which parameters a form contains because the form > is dynamically generated (from an OWL ontology). > > Regards, > Daniel > Cheers Tsuy