org.apache.hc.core5.http.io.SessionInputBuffer .
| Modifier and Type | Field and Description |
|---|---|
| private final HttpRequestFactory |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttpRequestParser(final LineParser
the line parser. If lineParser, final HttpRequestFactory<ClassicHttpRequest> null
org. will be used.the response factory. If requestFactory, final Http1Config null
DefaultClassicHttpRequestFactory#INSTANCE will be used.the message http1Config. If http1Config)null
Http1Config#DEFAULT will be used.Creates new instance of DefaultHttpRequestParser. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ClassicHttpRequest | createMessage(final CharArrayBuffer
the session input buffer. buffer)Implements abstract org. HttpMessage based on the initial input from the session buffer.
|
| public ClassicHttpRequest | parse(final SessionInputBuffer
Session input buffer buffer, final InputStream Input stream inputStream)Overrides org. Implements org. MessageHeaders from the given input stream..
|
| requestFactory | back to summary |
|---|---|
| private final HttpRequestFactory<ClassicHttpRequest> requestFactory | |
| DefaultHttpRequestParser | back to summary |
|---|---|
| public DefaultHttpRequestParser(final LineParser lineParser, final HttpRequestFactory<ClassicHttpRequest> requestFactory, final Http1Config http1Config) Creates new instance of DefaultHttpRequestParser.
| |
| DefaultHttpRequestParser | back to summary |
|---|---|
public DefaultHttpRequestParser(final Http1Config http1Config)
| |
| DefaultHttpRequestParser | back to summary |
|---|---|
public DefaultHttpRequestParser()
| |
| createMessage | back to summary |
|---|---|
| protected ClassicHttpRequest 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
| |
| parse | back to summary |
|---|---|
| public ClassicHttpRequest parse(final SessionInputBuffer buffer, final InputStream inputStream) throws IOException, HttpException Overrides org. Implements org. Doc from org. Generates an instance of
| |