java.lang.Object | |
↳ | org.apache.http.impl.nio.codecs.AbstractMessageParser<T extends org.apache.http.HttpMessage> |
Known Direct Subclasses |
Abstract NHttpMessageParser
that serves as a base for all message
parser implementations.
The following parameters can be used to customize the behavior of this class:
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
lineParser |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of this class.
|
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.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates HttpMessage instance based on the content of the input
buffer containing the first line of the incoming HTTP message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.nio.NHttpMessageParser
|
Creates an instance of this class.
buffer | the session input buffer. |
---|---|
parser | the line parser. |
params | HTTP parameters. |
Fills the internal buffer of the parser with input data from the
given ReadableByteChannel
.
channel | the input channel |
---|
IOException |
---|
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.HttpException | |
---|---|
IOException |
Resets the parser. The parser will be ready to start parsing another HTTP message.
Creates HttpMessage instance based on the content of the input buffer containing the first line of the incoming HTTP message.
buffer | the line buffer. |
---|
HttpException | in case of HTTP protocol violation |
---|---|
ParseException | in case of a parse error. |