users@jax-rs-spec.java.net

[jax-rs-spec users] Re: Add cookie from ContainerResponseFilter?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 30 Oct 2012 14:40:18 +0100

The bellow should work:

responseContext.getHeaders().put(HttpHeaders.SET_COOKIE, new NewCookie(...));

Please, file a Jira issue if that is not sufficient. (Note that using cookies is not RESTful :-P)

Marek

On Oct 29, 2012, at 8:27 PM, Jan Kronquist <jan.kronquist_at_jayway.com> wrote:

> It doesn't seem possible to add cookies with a ContainerResponseFilter? I expected to be able to perform most of the operations that can be done using a ResponseBuilder from a ContainerResponseFilter.
>
> /Jan