users@jersey.java.net

Re: [Jersey] _at_FormParam with FormDataContentDisposition

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Tue, 11 Nov 2008 10:15:04 -0800 (PST)

        Are there plans to extend JAX-RS @FormParam to cover
"multipart/form-data" in the near future?

Gili

Paul Sandoz (via Nabble) wrote:
>
> On Nov 11, 2008, at 6:57 PM, Gili wrote:
>
> >
> > Paul,
> >
> > The JAX-RS specification is very confusing about what @FormParam
> > actually
> > does. In fact, it doesn't look like it defines it at all.
>
> https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/FormParam.html
>
> I agree it is rather vague with respect to what is a "form parameter"
> is.
>
> My understanding that we specified it to work only for consuming
> "application/x-www-form-urlencoded" representations.
>
>
> > I ask because I am
> > wondering what happens if I use the Jersey implementation today but
> > decide
> > to migrate to another implementation in the future. Can you comment
> > on the
> > portability of this feature?
> >
>
> If you use the feature when consuming "multupart/form-data"
> representations then it is currently non standard.
>
> Paul.
>
>
> > Thank you,
> > Gili
> >
> >
> > Paul Sandoz wrote:
> >>
> >> Hi,
> >>
> >> I just committed support in the trunk that enables you to do the
> >> following:
> >>
> >> @POST
> >> @Consumes("multipart/form-data")
> >> public String post(
> >> @FormParam("file") JAXBBean f,
> >> @FormParam("file") FormDataContentDisposition fdc)
> >> throws Exception {
> >> ..
> >> }
> >>
> >> so it is possible to get parameters values like the value of the
> >> "filename" parameter, if present.
> >>
> >> Paul.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1486212&i=0>
> >> For additional commands, e-mail: users-help@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1486212&i=1>
> >>
> >>
> >>
> >
> > --
> > View this message in context:
> http://n2.nabble.com/%40FormParam-with-FormDataContentDisposition-tp1485168p1486170.html
> > Sent from the Jersey mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1486212&i=2>
> > For additional commands, e-mail: users-help@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1486212&i=3>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1486212&i=4>
> For additional commands, e-mail: users-help@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1486212&i=5>
>
>
>
> ------------------------------------------------------------------------
> This email is a reply to your post @
> http://n2.nabble.com/%40FormParam-with-FormDataContentDisposition-tp1485168p1486212.html
> You can reply by email or by visting the link above.
>

-- 
View this message in context: http://n2.nabble.com/%40FormParam-with-FormDataContentDisposition-tp1485168p1486230.html
Sent from the Jersey mailing list archive at Nabble.com.