Package io.netty.handler.codec.http
Class HttpObjectDecoder.LineParser
- java.lang.Object
-
- io.netty.handler.codec.http.HttpObjectDecoder.HeaderParser
-
- io.netty.handler.codec.http.HttpObjectDecoder.LineParser
-
- All Implemented Interfaces:
ByteProcessor
- Enclosing class:
- HttpObjectDecoder
private final class HttpObjectDecoder.LineParser extends HttpObjectDecoder.HeaderParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.util.ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor
-
-
Field Summary
-
Fields inherited from interface io.netty.util.ByteProcessor
FIND_ASCII_SPACE, FIND_COMMA, 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, FIND_SEMI_COLON
-
-
Constructor Summary
Constructors Constructor Description LineParser(AppendableCharSequence seq, int maxLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TooLongFrameExceptionnewException(int maxLength)AppendableCharSequenceparse(ByteBuf buffer)booleanprocess(byte value)-
Methods inherited from class io.netty.handler.codec.http.HttpObjectDecoder.HeaderParser
increaseCount, reset
-
-
-
-
Constructor Detail
-
LineParser
LineParser(AppendableCharSequence seq, int maxLength)
-
-
Method Detail
-
parse
public AppendableCharSequence parse(ByteBuf buffer)
- Overrides:
parsein classHttpObjectDecoder.HeaderParser
-
process
public boolean process(byte value) throws java.lang.Exception- Specified by:
processin interfaceByteProcessor- Overrides:
processin classHttpObjectDecoder.HeaderParser- Returns:
trueif the processor wants to continue the loop and handle the next byte in the buffer.falseif the processor wants to stop handling bytes and abort the loop.- Throws:
java.lang.Exception
-
newException
protected TooLongFrameException newException(int maxLength)
- Overrides:
newExceptionin classHttpObjectDecoder.HeaderParser
-
-