Package org.apache.http.impl.io
Class DefaultHttpRequestParser
- java.lang.Object
-
- org.apache.http.impl.io.AbstractMessageParser<HttpRequest>
-
- org.apache.http.impl.io.DefaultHttpRequestParser
-
- All Implemented Interfaces:
HttpMessageParser<HttpRequest>
public class DefaultHttpRequestParser extends AbstractMessageParser<HttpRequest>
HTTP request parser that obtain its input from an instance ofSessionInputBuffer
.- Since:
- 4.2
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpRequestParser(SessionInputBuffer buffer)
DefaultHttpRequestParser(SessionInputBuffer buffer, MessageConstraints constraints)
DefaultHttpRequestParser(SessionInputBuffer buffer, LineParser lineParser, HttpRequestFactory requestFactory, MessageConstraints constraints)
Creates new instance of DefaultHttpRequestParser.DefaultHttpRequestParser(SessionInputBuffer buffer, LineParser lineParser, HttpRequestFactory requestFactory, HttpParams params)
-
Method Summary
-
Methods inherited from class org.apache.http.impl.io.AbstractMessageParser
parse, parseHeaders, parseHeaders
-
-
-
-
Constructor Detail
-
DefaultHttpRequestParser
@Deprecated public DefaultHttpRequestParser(SessionInputBuffer buffer, LineParser lineParser, HttpRequestFactory requestFactory, HttpParams params)
Deprecated.Creates an instance of this class.- Parameters:
buffer
- the session input buffer.lineParser
- the line parser.requestFactory
- the factory to use to createHttpRequest
s.params
- HTTP parameters.
-
DefaultHttpRequestParser
public DefaultHttpRequestParser(SessionInputBuffer buffer, LineParser lineParser, HttpRequestFactory requestFactory, MessageConstraints constraints)
Creates new instance of DefaultHttpRequestParser.- Parameters:
buffer
- the session input buffer.lineParser
- the line parser. Ifnull
BasicLineParser.INSTANCE
will be used.requestFactory
- the response factory. Ifnull
DefaultHttpRequestFactory.INSTANCE
will be used.constraints
- the message constraints. Ifnull
MessageConstraints.DEFAULT
will be used.- Since:
- 4.3
-
DefaultHttpRequestParser
public DefaultHttpRequestParser(SessionInputBuffer buffer, MessageConstraints constraints)
- Since:
- 4.3
-
DefaultHttpRequestParser
public DefaultHttpRequestParser(SessionInputBuffer buffer)
- Since:
- 4.3
-
-