Class AbstractMessageWriter<T extends HttpMessage>

    • Constructor Detail

      • AbstractMessageWriter

        public AbstractMessageWriter​(LineFormatter formatter)
        Creates an instance of AbstractMessageWriter.
        Parameters:
        formatter - the line formatter If null BasicLineFormatter.INSTANCE will be used.
        Since:
        4.3
    • Method Detail

      • writeHeadLine

        protected abstract void writeHeadLine​(T message,
                                              CharArrayBuffer lineBuf)
                                       throws java.io.IOException
        Subclasses must override this method to write out the first header line based on the HttpMessage passed as a parameter.
        Parameters:
        message - the message whose first line is to be written out.
        lineBuf - line buffer
        Throws:
        java.io.IOException - in case of an I/O error.