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

From: Marek Potociar <>
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)


On Oct 29, 2012, at 8:27 PM, Jan Kronquist <> 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