JAX-RS supports the header parameter injection. You can model your method such 
as:


@GET
Response myMethod(@HeaderParam("MyHeader") String header) {
}


On Jan 7, 2013, at 6:42 AM, Gerardo González González 
<[email protected]> wrote:

> Hi all,
> 
> How do I send a response based on headers only?
> 
> My use case is a resource that must send a redirect. But I need to check
> credentials.
> 
> Thanks.
> 
> Gerardo.

Reply via email to