org.apache.hc.core5.http.io.SessionInputBuffer .
| Modifier and Type | Field and Description |
|---|---|
| private final HttpResponseFactory |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttpResponseParser(final LineParser
the line parser. If lineParser, final HttpResponseFactory<ClassicHttpResponse> null
org. will be usedthe response factory. If responseFactory, final Http1Config null
DefaultClassicHttpResponseFactory#INSTANCE will be used.the message http1Config. If http1Config)null
Http1Config#DEFAULT will be used.Creates new instance of DefaultHttpResponseParser. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ClassicHttpResponse | createMessage(final CharArrayBuffer
the session input buffer. buffer)Implements abstract org. HttpMessage based on the initial input from the session buffer.
|
| responseFactory | back to summary |
|---|---|
| private final HttpResponseFactory<ClassicHttpResponse> responseFactory | |
| DefaultHttpResponseParser | back to summary |
|---|---|
| public DefaultHttpResponseParser(final LineParser lineParser, final HttpResponseFactory<ClassicHttpResponse> responseFactory, final Http1Config http1Config) Creates new instance of DefaultHttpResponseParser.
| |
| DefaultHttpResponseParser | back to summary |
|---|---|
public DefaultHttpResponseParser(final Http1Config http1Config)
| |
| DefaultHttpResponseParser | back to summary |
|---|---|
public DefaultHttpResponseParser()
| |
| createMessage | back to summary |
|---|---|
| protected ClassicHttpResponse createMessage(final CharArrayBuffer buffer) throws IOException, HttpException Implements abstract org. Doc from org. Subclasses must override this method to generate an instance of
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
| |