DefaultHttpResponseParser@ThreadSafe public class DefaultResponseParser extends AbstractMessageParser<HttpMessage>
The following parameters can be used to customize the behavior of this class:
lineParser| 构造器和说明 |
|---|
DefaultResponseParser(SessionInputBuffer buffer,
LineParser parser,
HttpResponseFactory responseFactory,
HttpParams params)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
getMaxGarbageLines(HttpParams params)
已过时。
|
protected HttpMessage |
parseHead(SessionInputBuffer sessionBuffer)
已过时。
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 在类中 AbstractMessageParser<HttpMessage>sessionBuffer - the session input buffer.java.io.IOException - in case of an I/O error.HttpException - in case of HTTP protocol violation.