On Oct 21, 2009, at 6:40 PM, Andy wrote:
> Hi,
>
> how can I add an additional header to this call:
> Response.temporaryRedirect(uri).build()
Response.temporaryRedirect(uri).header("X-FOO", "foo").build()
See:
https://jsr311.dev.java.net/nonav/javadoc/javax/ws/rs/core/Response.html
Paul.
> The header is needed for basic authentication, so I'd like to add
> the header as pair of strings.
> I read something about || <http://www.j2ee.me/javaee/6/docs/api/javax/ws/rs/ext/RuntimeDelegate.HeaderDelegate.html
> >RuntimeDelegate.HeaderDelegate but I didn't get it work.
> I'm using jersey 1.0.3.1
>
> Thanks,
> Andy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>