public class DefaultHttpResponseParser extends AbstractMessageParser<ClassicHttpResponse>
SessionInputBuffer
.Constructor and Description |
---|
DefaultHttpResponseParser() |
DefaultHttpResponseParser(Http1Config http1Config) |
DefaultHttpResponseParser(Http1Config http1Config,
LineParser lineParser,
HttpResponseFactory<ClassicHttpResponse> responseFactory) |
DefaultHttpResponseParser(LineParser lineParser,
HttpResponseFactory<ClassicHttpResponse> responseFactory,
Http1Config http1Config)
|
Modifier and Type | Method and Description |
---|---|
protected ClassicHttpResponse |
createMessage(CharArrayBuffer buffer)
Subclasses must override this method to generate an instance of
HttpMessage based on the initial input from the session buffer. |
createConnectionClosedException, parse, parseHeaders, parseHeaders
public DefaultHttpResponseParser(Http1Config http1Config, LineParser lineParser, HttpResponseFactory<ClassicHttpResponse> responseFactory)
@Deprecated public DefaultHttpResponseParser(LineParser lineParser, HttpResponseFactory<ClassicHttpResponse> responseFactory, Http1Config http1Config)
public DefaultHttpResponseParser(Http1Config http1Config)
public DefaultHttpResponseParser()
protected ClassicHttpResponse createMessage(CharArrayBuffer buffer) throws IOException, HttpException
AbstractMessageParser
HttpMessage
based on the initial input from the session buffer.
Usually this method is expected to read just the very first line or
the very first valid from the data stream and based on the input generate
an appropriate instance of HttpMessage
.
createMessage
in class AbstractMessageParser<ClassicHttpResponse>
buffer
- the session input buffer.IOException
- in case of an I/O error.HttpException
- in case of HTTP protocol violation.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.