Class HttpRequestParser

java.lang.Object
org.apache.http.impl.nio.codecs.AbstractMessageParser
org.apache.http.impl.nio.codecs.HttpRequestParser
All Implemented Interfaces:
NHttpMessageParser

@Deprecated public class HttpRequestParser extends AbstractMessageParser
Deprecated.
Default NHttpMessageParser implementation for HttpRequests.

The following parameters can be used to customize the behavior of this class:

  • CoreConnectionPNames.MAX_HEADER_COUNT
  • CoreConnectionPNames.MAX_LINE_LENGTH
Since:
4.0
  • Constructor Details

    • HttpRequestParser

      public HttpRequestParser(SessionInputBuffer buffer, org.apache.http.message.LineParser parser, org.apache.http.HttpRequestFactory requestFactory, org.apache.http.params.HttpParams params)
      Deprecated.
  • Method Details

    • createMessage

      protected org.apache.http.HttpMessage createMessage(org.apache.http.util.CharArrayBuffer buffer) throws org.apache.http.HttpException, org.apache.http.ParseException
      Deprecated.
      Description copied from class: AbstractMessageParser
      Creates HttpMessage instance based on the content of the input buffer containing the first line of the incoming HTTP message.
      Specified by:
      createMessage in class AbstractMessageParser
      Parameters:
      buffer - the line buffer.
      Returns:
      HTTP message.
      Throws:
      org.apache.http.HttpException - in case of HTTP protocol violation
      org.apache.http.ParseException - in case of a parse error.