Version 3

    JAX-RS Custom Response

     

    You can build custom responses using the javax.ws.rs.core.Response and ResponseBuilder classes.  If you want to do your own streaming, your entity response must be an implementation of javax.ws.rs.core.StreamingOutput.   See the java doc for more information.