@NotThreadSafe public class DefaultHttpResponseParser extends AbstractMessageParser<HttpResponse>
NHttpMessageParser implementation for HttpResponses.
The following parameters can be used to customize the behavior of this class:
lineParser| Constructor and Description |
|---|
DefaultHttpResponseParser(SessionInputBuffer buffer,
LineParser parser,
HttpResponseFactory responseFactory,
HttpParams params) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
createMessage(CharArrayBuffer buffer)
Creates
HttpMessage instance based on the content of the input
buffer containing the first line of the incoming HTTP message. |
fillBuffer, parse, resetpublic DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser parser, HttpResponseFactory responseFactory, HttpParams params)
protected HttpResponse createMessage(CharArrayBuffer buffer) throws HttpException, ParseException
AbstractMessageParserHttpMessage instance based on the content of the input
buffer containing the first line of the incoming HTTP message.createMessage in class AbstractMessageParser<HttpResponse>buffer - the line buffer.HttpException - in case of HTTP protocol violationParseException - in case of a parse error.Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.