|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NHttpMessageParser<T extends HttpMessage>
Abstract HTTP message parser for non-blocking connections.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void reset()
int fillBuffer(ReadableByteChannel channel) throws IOException
ReadableByteChannel
.
channel
- the input channel
IOException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |