public class DefaultHttpResponseParser<T extends HttpResponse> extends AbstractMessageParser<T>
NHttpMessageParser implementation for HttpResponses.| 构造器和说明 |
|---|
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory) |
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory,
Http1Config http1Config) |
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory,
LineParser parser,
Http1Config http1Config)
Creates an instance of DefaultHttpResponseParser.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 AbstractMessageParser<T extends HttpResponse>buffer - the line buffer.HttpException - in case of HTTP protocol violationCopyright © 2023. All rights reserved.