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