Hi all,
It seems that the proper/obvious way to control the headers and status code
etc that get sent back to the caller from a JAX-RS resource is to have that
method return a Response object, and use the ResonseBuilder to interact
with those items.
However, a team member has suggested that it's more readable (at least in
the resulting API documentation) if the method simply returns the object
that will form the basis of the returned entity. Is there a way to control
things like headers and status using one of the injectables? Is there an
@Context, for example?
Many thanks,
Simon