On Feb 13, 2008 7:51 AM, Marc Hadley <Marc.Hadley_at_sun.com> wrote:
> 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 ?
Exactly.
Though your "source" enum sounds interesting too.
Dhanji.