Package org.apache.http.impl.nio.codecs
Class HttpResponseParser
java.lang.Object
org.apache.http.impl.nio.codecs.AbstractMessageParser
org.apache.http.impl.nio.codecs.HttpResponseParser
- All Implemented Interfaces:
NHttpMessageParser
Deprecated.
Default
NHttpMessageParser
implementation
for HttpResponse
s.
The following parameters can be used to customize the behavior of this class:
CoreConnectionPNames.MAX_HEADER_COUNT
CoreConnectionPNames.MAX_LINE_LENGTH
- Since:
- 4.0
-
Field Summary
Fields inherited from class org.apache.http.impl.nio.codecs.AbstractMessageParser
lineParser
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseParser
(SessionInputBuffer buffer, org.apache.http.message.LineParser parser, org.apache.http.HttpResponseFactory responseFactory, org.apache.http.params.HttpParams params) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.HttpMessage
createMessage
(org.apache.http.util.CharArrayBuffer buffer) Deprecated.CreatesHttpMessage
instance based on the content of the input buffer containing the first line of the incoming HTTP message.Methods inherited from class org.apache.http.impl.nio.codecs.AbstractMessageParser
fillBuffer, parse, reset
-
Constructor Details
-
HttpResponseParser
public HttpResponseParser(SessionInputBuffer buffer, org.apache.http.message.LineParser parser, org.apache.http.HttpResponseFactory responseFactory, 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
CreatesHttpMessage
instance based on the content of the input buffer containing the first line of the incoming HTTP message.- Specified by:
createMessage
in classAbstractMessageParser
- Parameters:
buffer
- the line buffer.- Returns:
- HTTP message.
- Throws:
org.apache.http.HttpException
- in case of HTTP protocol violationorg.apache.http.ParseException
- in case of a parse error.
-
DefaultHttpResponseParser