[jax-rs-spec users] [jsr339-experts] Response headers are writable without a builder

From: Bill Burke <>
Date: Mon, 05 Mar 2012 10:56:07 -0500

Another thing that sucks about Response, ResponseBuilder, and modifying
them in filters is that Response.getMetadata() allows you to modify the
headers directly on the Response. The separation between reading and
writing that a Builder is supposed to give you is broken.

So why do we still insist on forcing this Builder pattern for
everything else other than Response headers?

Bill Burke
JBoss, a division of Red Hat