T
- The type of HttpResponse
.public class DefaultHttpResponseParser<T extends HttpResponse> extends AbstractMessageParser<T>
NHttpMessageParser
implementation for HttpResponse
s.Constructor and Description |
---|
DefaultHttpResponseParser(Http1Config http1Config,
HttpResponseFactory<T> responseFactory) |
DefaultHttpResponseParser(Http1Config http1Config,
LineParser parser,
HttpResponseFactory<T> responseFactory) |
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory) |
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory,
Http1Config http1Config)
Deprecated.
|
DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory,
LineParser parser,
Http1Config http1Config)
|
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, reset
public DefaultHttpResponseParser(Http1Config http1Config, LineParser parser, HttpResponseFactory<T> responseFactory)
public DefaultHttpResponseParser(Http1Config http1Config, HttpResponseFactory<T> responseFactory)
@Deprecated public DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory, LineParser parser, Http1Config http1Config)
@Deprecated public DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory, Http1Config http1Config)
DefaultHttpResponseParser(Http1Config, HttpResponseFactory)
public DefaultHttpResponseParser(HttpResponseFactory<T> responseFactory)
protected T createMessage(CharArrayBuffer buffer) throws HttpException
AbstractMessageParser
HttpMessage
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–2021 The Apache Software Foundation. All rights reserved.