dev@jsr311.java.net

Re: JSR311: _at_Cookie

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 12 Feb 2008 16:51:30 -0500

On Feb 12, 2008, at 4:17 PM, Dhanji R. Prasanna wrote:
> > Hmm. Not a bad idea. Why not:
> >
> > public Response get(@Param("cookieName") javax.servlet...Cookie
> > cookie);
> >
> > ?
> >
> Do you mean @HeaderParam or a new annotation @Param ?
>
> I meant an existing @Param. I must have missed the header prefix. My
> specific intention was not to create another annotation just for
> cookies.
>
So the value of @HeaderParam would be the cookie name if the class of
the annotated parameter is Cookie but the HTTP header name for any
other type ?

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.