Package io.netty.handler.codec.stomp
Class StompSubframeDecoder.HeaderParser
- java.lang.Object
-
- io.netty.handler.codec.stomp.StompSubframeDecoder.Utf8LineParser
-
- io.netty.handler.codec.stomp.StompSubframeDecoder.HeaderParser
-
- All Implemented Interfaces:
ByteProcessor
- Enclosing class:
- StompSubframeDecoder
private static final class StompSubframeDecoder.HeaderParser extends StompSubframeDecoder.Utf8LineParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.util.ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringnameprivate booleanvalidprivate booleanvalidateHeaders-
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 HeaderParser(AppendableCharSequence charSeq, int maxLineLength, boolean validateHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanparseHeader(StompHeaders headers, ByteBuf buf)booleanprocess(byte nextByte)protected voidreset()-
Methods inherited from class io.netty.handler.codec.stomp.StompSubframeDecoder.Utf8LineParser
charSequence, parse
-
-
-
-
Constructor Detail
-
HeaderParser
HeaderParser(AppendableCharSequence charSeq, int maxLineLength, boolean validateHeaders)
-
-
Method Detail
-
parseHeader
boolean parseHeader(StompHeaders headers, ByteBuf buf)
-
process
public boolean process(byte nextByte) throws java.lang.Exception- Specified by:
processin interfaceByteProcessor- Overrides:
processin classStompSubframeDecoder.Utf8LineParser- 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
-
reset
protected void reset()
- Overrides:
resetin classStompSubframeDecoder.Utf8LineParser
-
-