Overriding all JAX-RS responses with a constant response header
I'm writing a fairly generic webapp that I want to be JAX-RS "pure",
though I'm developing using Jetty and CXF. I want to do something
extremely simple, I want for ALL HTTP responses a header added (not just
for the methods I'm writing code for, even auto-handled 406 responses).
Solutions for How do i modify HTTP headers for a JAX-WS response in CXF?
seem overly complex (and specific for CXF's implementations of JAX-RS)for
just needing to add: MyServerVersion : 1.0 to every response.
No comments:
Post a Comment