org.apache.http.nio.NHttpMessageParser<T extends org.apache.http.HttpMessage> |
Known Indirect Subclasses
AbstractMessageParser<T extends HttpMessage>,
DefaultHttpRequestParser,
DefaultHttpResponseParser,
HttpRequestParser,
HttpResponseParser
|
Abstract HTTP message parser for non-blocking connections.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fills the internal buffer of the parser with input data from the
given
ReadableByteChannel . | |||||||||||
Attempts to parse a complete message head from the content of the
internal buffer.
| |||||||||||
Resets the parser.
|
Fills the internal buffer of the parser with input data from the
given ReadableByteChannel
.
channel | the input channel |
---|
IOException | in case of an I/O error. |
---|
Attempts to parse a complete message head from the content of the
internal buffer. If the message in the input buffer is incomplete
this method will return null
.
null
otherwise.IOException | in case of an I/O error. |
---|---|
HttpException | in case the HTTP message is malformed or violates the HTTP protocol. |
Resets the parser. The parser will be ready to start parsing another HTTP message.