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 ByteProcessor
ByteProcessor.IndexNotOfProcessor, ByteProcessor.IndexOfProcessor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate Stringprivate intprivate booleanprivate booleanprivate booleanprivate final booleanFields inherited from interface 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, int maxNumHeaders, boolean validateHeaders) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendTo(AppendableCharSequence charSeq, char chr) (package private) booleanparseHeader(StompHeadersSubframe headersSubframe, ByteBuf buf) booleanprocess(byte nextByte) protected voidreset()(package private) voidprivate static booleanshouldUnescape(StompCommand command) Methods inherited from class StompSubframeDecoder.Utf8LineParser
charSequence, parse
-
Field Details
-
validateHeaders
private final boolean validateHeaders -
maxNumHeaders
private final int maxNumHeaders -
numHeaders
private int numHeaders -
name
-
valid
private boolean valid -
shouldUnescape
private boolean shouldUnescape -
unescapeInProgress
private boolean unescapeInProgress
-
-
Constructor Details
-
HeaderParser
HeaderParser(AppendableCharSequence charSeq, int maxLineLength, int maxNumHeaders, boolean validateHeaders)
-
-
Method Details
-
resetNumHeaders
void resetNumHeaders() -
parseHeader
-
process
- 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:
Exception
-
appendTo
- Overrides:
appendToin classStompSubframeDecoder.Utf8LineParser
-
reset
protected void reset()- Overrides:
resetin classStompSubframeDecoder.Utf8LineParser
-
shouldUnescape
-