Class EmptyResponse


  • public class EmptyResponse
    extends HttpResponse
    Placeholder response when no content, only headers and status is to be returned.
    Author:
    Steinar Knutsen
    • Constructor Detail

      • EmptyResponse

        public EmptyResponse​(int status)
    • Method Detail

      • render

        public void render​(java.io.OutputStream outputStream)
                    throws java.io.IOException
        Description copied from class: HttpResponse
        Marshal this response to the network layer. The caller is responsible for flushing and closing outputStream.
        Specified by:
        render in class HttpResponse
        Throws:
        java.io.IOException