On Thu, 2008-06-26 at 15:06 -0400, Marc Hadley wrote:
> On Jun 26, 2008, at 2:46 PM, Martin Grotzke wrote:
> >
> > Just thinking about this: for some paramater of primitive type (e.g.
> > int) I would expect that jersey returns some status 400, as the
> > param is
> > obviously required. Why shall this be done for some types, but not for
> > all?
> >
> > Therefore I would think it *should* be 1) and should be defined by
> > jsr311. Unfortunately I couldn't find anything related to this in the
> > spec.
> >
> See third paragraph of:
>
> https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/DefaultValue.html
>
> Essentially you get the Java-defined default value for the primitive
> type.
Thanx, good to get closer and closer to jax-rs :)
Btw: IMHO it would be good to have such a hint in the spec (pdf),
because I'm not reading the @DefaultValue javadoc when I'm not using it.
Cheers,
Martin
>
> I need to think about this some more but initially I like the idea of
> an @Required in the JSR API.
>
> Marc.
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net