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 booleanshouldUnescapeprivate booleanunescapeInProgressprivate 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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendTo(AppendableCharSequence charSeq, char chr)(package private) booleanparseHeader(StompHeadersSubframe headersSubframe, ByteBuf buf)booleanprocess(byte nextByte)protected voidreset()private static booleanshouldUnescape(StompCommand command)-
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(StompHeadersSubframe headersSubframe, 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
-
appendTo
protected void appendTo(AppendableCharSequence charSeq, char chr)
- Overrides:
appendToin classStompSubframeDecoder.Utf8LineParser
-
reset
protected void reset()
- Overrides:
resetin classStompSubframeDecoder.Utf8LineParser
-
shouldUnescape
private static boolean shouldUnescape(StompCommand command)
-
-