public class DefaultHttpResponseParser<T extends HttpResponse> extends AbstractMessageParser<T>
NHttpMessageParser implementation for HttpResponses.| Constructor and Description |
|---|
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory) |
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory,
Http1Config http1Config) |
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory,
LineParser parser,
Http1Config http1Config)
Creates an instance of DefaultHttpResponseParser.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
createMessage(CharArrayBuffer buffer)
Creates
HttpMessage instance based on the content of the input
buffer containing the first line of the incoming HTTP message. |
parse, resetpublic DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory, LineParser parser, Http1Config http1Config)
responseFactory - the response factory.parser - the line parser. If null
LazyLineParser.INSTANCE will be used.http1Config - Message http1Config. If null
Http1Config.DEFAULT will be used.public DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory, Http1Config http1Config)
public DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory)
protected T createMessage(CharArrayBuffer buffer) throws HttpException
AbstractMessageParserHttpMessage instance based on the content of the input
buffer containing the first line of the incoming HTTP message.createMessage in class AbstractMessageParser<T extends HttpResponse>buffer - the line buffer.HttpException - in case of HTTP protocol violationCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.