@NotThreadSafe public class DefaultHttpResponseParser extends AbstractMessageParser<HttpResponse>
NHttpMessageParser
implementation for HttpResponse
s.
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, reset
public DefaultHttpResponseParser(SessionInputBuffer buffer, LineParser parser, HttpResponseFactory responseFactory, HttpParams params)
protected HttpResponse createMessage(CharArrayBuffer buffer) throws HttpException, ParseException
AbstractMessageParser
HttpMessage
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-2015 The Apache Software Foundation. All Rights Reserved.