Package org.apache.http.impl.conn
Class DefaultHttpResponseParser
- java.lang.Object
-
- org.apache.http.impl.io.AbstractMessageParser<HttpResponse>
-
- org.apache.http.impl.conn.DefaultHttpResponseParser
-
- All Implemented Interfaces:
HttpMessageParser<HttpResponse>
public class DefaultHttpResponseParser extends AbstractMessageParser<HttpResponse>
Lenient HTTP response parser implementation that can skip malformed data until a valid HTTP response message head is encountered.- Since:
- 4.2
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpResponseParser(SessionInputBuffer buffer)
Creates new instance of DefaultHttpResponseParser.DefaultHttpResponseParser(SessionInputBuffer buffer, MessageConstraints constraints)
Creates new instance of DefaultHttpResponseParser.DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser lineParser, HttpResponseFactory responseFactory, MessageConstraints constraints)
Creates new instance of DefaultHttpResponseParser.DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser parser, HttpResponseFactory responseFactory, HttpParams params)
-
Method Summary
-
Methods inherited from class org.apache.http.impl.io.AbstractMessageParser
parse, parseHeaders, parseHeaders
-
-
-
-
Constructor Detail
-
DefaultHttpResponseParser
@Deprecated public DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser parser, HttpResponseFactory responseFactory, HttpParams params)
-
DefaultHttpResponseParser
public DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser lineParser, HttpResponseFactory responseFactory, MessageConstraints constraints)
Creates new instance of DefaultHttpResponseParser.- Parameters:
buffer
- the session input buffer.lineParser
- the line parser. Ifnull
BasicLineParser.INSTANCE
will be used.responseFactory
- HTTP response factory. Ifnull
DefaultHttpResponseFactory.INSTANCE
will be used.constraints
- the message constraints. Ifnull
MessageConstraints.DEFAULT
will be used.- Since:
- 4.3
-
DefaultHttpResponseParser
public DefaultHttpResponseParser(SessionInputBuffer buffer, MessageConstraints constraints)
Creates new instance of DefaultHttpResponseParser.- Parameters:
buffer
- the session input buffer.constraints
- the message constraints. Ifnull
MessageConstraints.DEFAULT
will be used.- Since:
- 4.3
-
DefaultHttpResponseParser
public DefaultHttpResponseParser(SessionInputBuffer buffer)
Creates new instance of DefaultHttpResponseParser.- Parameters:
buffer
- the session input buffer.- Since:
- 4.3
-
-