Class HttpRequestParser

    • Constructor Detail

      • HttpRequestParser

        public HttpRequestParser​(SessionInputBuffer buffer,
                                 LineParser parser,
                                 HttpRequestFactory requestFactory,
                                 HttpParams params)
        Deprecated.
        Creates an instance of this class.
        Parameters:
        buffer - the session input buffer.
        parser - the line parser.
        requestFactory - the factory to use to create HttpRequests.
        params - HTTP parameters.
    • Method Detail

      • parseHead

        protected HttpMessage parseHead​(SessionInputBuffer sessionBuffer)
                                 throws java.io.IOException,
                                        HttpException,
                                        ParseException
        Deprecated.
        Description copied from class: AbstractMessageParser
        Subclasses must override this method to generate an instance of HttpMessage based on the initial input from the session buffer.

        Usually this method is expected to read just the very first line or the very first valid from the data stream and based on the input generate an appropriate instance of HttpMessage.

        Specified by:
        parseHead in class AbstractMessageParser<HttpMessage>
        Parameters:
        sessionBuffer - the session input buffer.
        Returns:
        HTTP message based on the input from the session buffer.
        Throws:
        java.io.IOException - in case of an I/O error.
        HttpException - in case of HTTP protocol violation.
        ParseException - in case of a parse error.