AbstractMessageParser, DefaultHttpRequestParser, DefaultHttpResponseParser, HttpRequestParser, HttpResponseParserpublic interface NHttpMessageParser<T extends org.apache.http.HttpMessage>
| Modifier and Type | Method | Description |
|---|---|---|
int |
fillBuffer(java.nio.channels.ReadableByteChannel channel) |
Fills the internal buffer of the parser with input data from the
given
ReadableByteChannel. |
T |
parse() |
Attempts to parse a complete message head from the content of the
internal buffer.
|
void |
reset() |
Resets the parser.
|
void reset()
int fillBuffer(java.nio.channels.ReadableByteChannel channel)
throws java.io.IOException
ReadableByteChannel.channel - the input channeljava.io.IOException - in case of an I/O error.T parse() throws java.io.IOException, org.apache.http.HttpException
null.null otherwise.java.io.IOException - in case of an I/O error.org.apache.http.HttpException - in case the HTTP message is malformed or
violates the HTTP protocol.