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.