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.String
name
private boolean
shouldUnescape
private boolean
unescapeInProgress
private boolean
valid
private boolean
validateHeaders
-
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 void
appendTo(AppendableCharSequence charSeq, char chr)
(package private) boolean
parseHeader(StompHeadersSubframe headersSubframe, ByteBuf buf)
boolean
process(byte nextByte)
protected void
reset()
private static boolean
shouldUnescape(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:
process
in interfaceByteProcessor
- Overrides:
process
in classStompSubframeDecoder.Utf8LineParser
- Returns:
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.- Throws:
java.lang.Exception
-
appendTo
protected void appendTo(AppendableCharSequence charSeq, char chr)
- Overrides:
appendTo
in classStompSubframeDecoder.Utf8LineParser
-
reset
protected void reset()
- Overrides:
reset
in classStompSubframeDecoder.Utf8LineParser
-
shouldUnescape
private static boolean shouldUnescape(StompCommand command)
-
-