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
FieldsModifier and TypeFieldDescriptionprivate String
private boolean
private boolean
private boolean
private final boolean
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
ConstructorsConstructorDescriptionHeaderParser
(AppendableCharSequence charSeq, int maxLineLength, boolean validateHeaders) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Field Details
-
validateHeaders
private final boolean validateHeaders -
name
-
valid
private boolean valid -
shouldUnescape
private boolean shouldUnescape -
unescapeInProgress
private boolean unescapeInProgress
-
-
Constructor Details
-
HeaderParser
HeaderParser(AppendableCharSequence charSeq, int maxLineLength, boolean validateHeaders)
-
-
Method Details
-
parseHeader
-
process
- 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:
Exception
-
appendTo
- Overrides:
appendTo
in classStompSubframeDecoder.Utf8LineParser
-
reset
protected void reset()- Overrides:
reset
in classStompSubframeDecoder.Utf8LineParser
-
shouldUnescape
-