Class DefaultHttpResponseWriter

    • Constructor Detail

      • DefaultHttpResponseWriter

        public DefaultHttpResponseWriter​(SessionOutputBuffer buffer,
                                         LineFormatter formatter)
        Creates an instance of DefaultHttpResponseWriter.
        Parameters:
        buffer - the session output buffer.
        formatter - the line formatter If null BasicLineFormatter.INSTANCE will be used.
    • Method Detail

      • writeHeadLine

        protected void writeHeadLine​(HttpResponse message)
                              throws java.io.IOException
        Description copied from class: AbstractMessageWriter
        Subclasses must override this method to write out the first header line based on the HttpMessage passed as a parameter.
        Specified by:
        writeHeadLine in class AbstractMessageWriter<HttpResponse>
        Parameters:
        message - the message whose first line is to be written out.
        Throws:
        java.io.IOException - in case of an I/O error.