incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Spicar <daniel.spi...@trialox.org>
Subject Re: Accessing all sent FormParams in a POST request
Date Tue, 21 Dec 2010 10:06:02 GMT
Thanks Tsuy,

that works

Best,
Daniel

On Tue, Dec 21, 2010 at 9:06 AM, Tsuyoshi Ito <tsuy.ito@trialox.org> wrote:

> 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
> <daniel.spicar@trialox.org> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message