DefaultHttpResponseParser@Deprecated @ThreadSafe public class DefaultResponseParser extends AbstractMessageParser<HttpMessage>
The following parameters can be used to customize the behavior of this class:
lineParser| Constructor and Description |
|---|
DefaultResponseParser(SessionInputBuffer buffer,
LineParser parser,
HttpResponseFactory responseFactory,
HttpParams params)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getMaxGarbageLines(HttpParams params)
Deprecated.
|
protected HttpMessage |
parseHead(SessionInputBuffer sessionBuffer)
Deprecated.
Subclasses must override this method to generate an instance of
HttpMessage based on the initial input from the session buffer. |
parse, parseHeaders, parseHeaderspublic DefaultResponseParser(SessionInputBuffer buffer, LineParser parser, HttpResponseFactory responseFactory, HttpParams params)
protected int getMaxGarbageLines(HttpParams params)
protected HttpMessage parseHead(SessionInputBuffer sessionBuffer) throws java.io.IOException, HttpException
AbstractMessageParserHttpMessage 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.
parseHead in class AbstractMessageParser<HttpMessage>sessionBuffer - the session input buffer.java.io.IOException - in case of an I/O error.HttpException - in case of HTTP protocol violation.