public interface NHttpMessageParser<T extends HttpMessage>
| Modifier and Type | Method and Description |
|---|---|
int |
fillBuffer(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(ReadableByteChannel channel) throws IOException
ReadableByteChannel.channel - the input channelIOException - in case of an I/O error.T parse() throws IOException, HttpException
null.null otherwise.IOException - in case of an I/O error.HttpException - in case the HTTP message is malformed or
violates the HTTP protocol.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.