Chapter 23. Responses using javax.ws.rs.core.Response
You can build custom responses by using the
javax.ws.rs.core.Response
and ResponseBuilder
classes. To perform your own streaming, your entity response must be an implementation of javax.ws.rs.core.StreamingOutput
. See the Java Documentation for further information.