private static class HttpObjectDecoder.HeaderParser extends java.lang.Object implements ByteBufProcessor
Modifier and Type | Field and Description |
---|---|
private int |
maxLength |
private AppendableCharSequence |
seq |
private int |
size |
FIND_CR, FIND_CRLF, FIND_LF, FIND_LINEAR_WHITESPACE, FIND_NON_CR, FIND_NON_CRLF, FIND_NON_LF, FIND_NON_LINEAR_WHITESPACE, FIND_NON_NUL, FIND_NUL
Constructor and Description |
---|
HeaderParser(AppendableCharSequence seq,
int maxLength) |
Modifier and Type | Method and Description |
---|---|
protected TooLongFrameException |
newException(int maxLength) |
AppendableCharSequence |
parse(ByteBuf buffer) |
boolean |
process(byte value) |
void |
reset() |
private final AppendableCharSequence seq
private final int maxLength
private int size
HeaderParser(AppendableCharSequence seq, int maxLength)
public AppendableCharSequence parse(ByteBuf buffer)
public void reset()
public boolean process(byte value) throws java.lang.Exception
process
in interface ByteBufProcessor
true
if the processor wants to continue the loop and handle the next byte in the buffer.
false
if the processor wants to stop handling bytes and abort the loop.java.lang.Exception
protected TooLongFrameException newException(int maxLength)