classes.io.netty.handler.codec.mqtt.MqttDecoder.class Maven / Gradle / Ivy
The newest version!
???? 2+
, -
?. / ?0
12
3
4 5
16 7 8
9:
;<=
>
<? @AB
CD
E
FG
H
I
<J K
1L
MNO
P
Q
RS
T
UVW
*C X
RY
UZ
[\]^
_`
1a
bc
bd ?e
[3
f
g
h
ij
<k
l
Umn
op
q orst
ou
ovw
Hx
Eyz
{|
K}
~
?
b???
1?
_??
U?
b??
?
?
?
?
?
E?
E?
b???
aI
E?
?
?
E?
E??
i??
lC?
n??
p? _?
H??
t??
v?
U????
U? ??
U?
U? ??
??? InnerClasses Result DecoderState DEFAULT_MAX_BYTES_IN_MESSAGE I
ConstantValue ? mqttFixedHeader -Lio/netty/handler/codec/mqtt/MqttFixedHeader; variableHeader Ljava/lang/Object; bytesRemainingInVariablePart maxBytesInMessage ()V Code LineNumberTable LocalVariableTable this )Lio/netty/handler/codec/mqtt/MqttDecoder; (I)V decode T(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V cause Ljava/lang/Exception; decodedVariableHeader 0Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodedPayload message )Lio/netty/handler/codec/mqtt/MqttMessage; ctx (Lio/netty/channel/ChannelHandlerContext; buffer Lio/netty/buffer/ByteBuf; out Ljava/util/List; LocalVariableTypeTable 3Lio/netty/handler/codec/mqtt/MqttDecoder$Result<*>; $Ljava/util/List;
StackMapTable:j+???
Exceptions Signature h(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V invalidMessage @(Ljava/lang/Throwable;)Lio/netty/handler/codec/mqtt/MqttMessage; Ljava/lang/Throwable; decodeFixedHeader H(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttFixedHeader; b1 S messageType -Lio/netty/handler/codec/mqtt/MqttMessageType; dupFlag Z qosLevel retain remainingLength
multiplier digit loops decodedFixedHeader? decodeVariableHeader x(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/mqtt/MqttFixedHeader;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; {(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/mqtt/MqttFixedHeader;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result<*>; decodeConnectionVariableHeader K(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; zeroReservedFlag protoString numberOfBytesConsumed
protocolLevel B mqttVersion )Lio/netty/handler/codec/mqtt/MqttVersion; keepAlive hasUserName hasPassword
willRetain willQos willFlag cleanSession mqttConnectVariableHeader 7Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader; DLio/netty/handler/codec/mqtt/MqttDecoder$Result; ELio/netty/handler/codec/mqtt/MqttDecoder$Result;? ?(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeConnAckVariableHeader sessionPresent
returnCode mqttConnAckVariableHeader 7Lio/netty/handler/codec/mqtt/MqttConnAckVariableHeader; ?(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeMessageIdVariableHeader messageId ?(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodePublishVariableHeader decodedMessageId decodedTopic mqttPublishVariableHeader 7Lio/netty/handler/codec/mqtt/MqttPublishVariableHeader; ?(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/mqtt/MqttFixedHeader;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeMessageId `(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result;
decodePayload ?(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/mqtt/MqttMessageType;ILjava/lang/Object;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; ?(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/mqtt/MqttMessageType;ILjava/lang/Object;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result<*>; decodeConnectionPayload ?(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodedClientId decodedClientIdValue Ljava/lang/String; decodedWillTopic decodedWillMessage decodedUserName decodedPassword mqttConnectPayload 0Lio/netty/handler/codec/mqtt/MqttConnectPayload; 4Lio/netty/handler/codec/mqtt/MqttDecoder$Result<[B>;nt ?(Lio/netty/buffer/ByteBuf;Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeSubscribePayload L(Lio/netty/buffer/ByteBuf;I)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodedTopicName qos subscribeTopics ELjava/util/List; ?(Lio/netty/buffer/ByteBuf;I)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeSubackPayload
grantedQos %Ljava/util/List; }(Lio/netty/buffer/ByteBuf;I)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeUnsubscribePayload unsubscribeTopics $Ljava/util/List; ?(Lio/netty/buffer/ByteBuf;I)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodePublishPayload b g(Lio/netty/buffer/ByteBuf;I)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeString _(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; M(Lio/netty/buffer/ByteBuf;II)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; minBytes maxBytes decodedSize size s a(Lio/netty/buffer/ByteBuf;II)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; decodeByteArray bytes [B O(Lio/netty/buffer/ByteBuf;)Lio/netty/handler/codec/mqtt/MqttDecoder$Result<[B>; decodeMsbLsb min max msbSize lsbSize result b(Lio/netty/buffer/ByteBuf;II)Lio/netty/handler/codec/mqtt/MqttDecoder$Result; aLio/netty/handler/codec/ReplayingDecoder;
SourceFile MqttDecoder.java 'io/netty/handler/codec/mqtt/MqttDecoder ? ??? ?? ? ????? 4io/netty/handler/codec/mqtt/MqttDecoder$DecoderState?? ? ? ? ? ?? ? ????? java/lang/Exception ? ???? ? ??? ? ? 'io/netty/handler/codec/DecoderException java/lang/StringBuilder ? ? too large message: ???? bytes?? ?????? ?? ? ? "non-zero remaining payload bytes: (???????????? java/lang/Error????????? #remaining length exceeds 4 digits ( +io/netty/handler/codec/mqtt/MqttFixedHeader??? ????????? ? ? ? ? ? ? ? ? .io/netty/handler/codec/mqtt/MqttDecoder$Result ?? ??? java/lang/String???! ?? ? non-zero reserved flag 5io/netty/handler/codec/mqtt/MqttConnectVariableHeader?? ?? java/lang/Integer?? ?? 5io/netty/handler/codec/mqtt/MqttConnAckVariableHeader??? ?? ? ?????? invalid publish topic name: (contains wildcards) ???? 5io/netty/handler/codec/mqtt/MqttPublishVariableHeader ???? invalid messageId: ? ?
?????? ;io/netty/handler/codec/mqtt/MqttIdentifierRejectedException invalid clientIdentifier: ?? ? ?? ?? .io/netty/handler/codec/mqtt/MqttConnectPayload ?? java/util/ArrayList 1io/netty/handler/codec/mqtt/MqttTopicSubscription ? 0io/netty/handler/codec/mqtt/MqttSubscribePayload ?? -io/netty/handler/codec/mqtt/MqttSubAckPayload ? 2io/netty/handler/codec/mqtt/MqttUnsubscribePayload??
?
! 'io/netty/handler/codec/ReplayingDecoder )io/netty/handler/codec/mqtt/MqttDecoder$1 &io/netty/channel/ChannelHandlerContext io/netty/buffer/ByteBuf java/util/List +io/netty/handler/codec/mqtt/MqttMessageType 'io/netty/handler/codec/mqtt/MqttVersion READ_FIXED_HEADER 6Lio/netty/handler/codec/mqtt/MqttDecoder$DecoderState; (Ljava/lang/Object;)V ?$SwitchMap$io$netty$handler$codec$mqtt$MqttDecoder$DecoderState [I state ()Ljava/lang/Object; ordinal ()I READ_VARIABLE_HEADER
checkpoint add (Ljava/lang/Object;)Z
access$000 D(Lio/netty/handler/codec/mqtt/MqttDecoder$Result;)Ljava/lang/Object; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V
access$100 3(Lio/netty/handler/codec/mqtt/MqttDecoder$Result;)I READ_PAYLOAD /()Lio/netty/handler/codec/mqtt/MqttMessageType; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; .io/netty/handler/codec/mqtt/MqttMessageFactory
newMessage |(Lio/netty/handler/codec/mqtt/MqttFixedHeader;Ljava/lang/Object;Ljava/lang/Object;)Lio/netty/handler/codec/mqtt/MqttMessage; actualReadableBytes skipBytes (I)Lio/netty/buffer/ByteBuf; BAD_MESSAGE newInvalidMessage (Lio/netty/handler/codec/mqtt/MqttFixedHeader;Ljava/lang/Object;Ljava/lang/Throwable;)Lio/netty/handler/codec/mqtt/MqttMessage; readUnsignedByte ()S valueOf 0(I)Lio/netty/handler/codec/mqtt/MqttMessageType; #io/netty/handler/codec/mqtt/MqttQoS ((I)Lio/netty/handler/codec/mqtt/MqttQoS; X(Lio/netty/handler/codec/mqtt/MqttMessageType;ZLio/netty/handler/codec/mqtt/MqttQoS;ZI)V )io/netty/handler/codec/mqtt/MqttCodecUtil resetUnusedFields \(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)Lio/netty/handler/codec/mqtt/MqttFixedHeader; validateFixedHeader 6$SwitchMap$io$netty$handler$codec$mqtt$MqttMessageType (Ljava/lang/Object;I)V readByte ()B fromProtocolNameAndLevel >(Ljava/lang/String;B)Lio/netty/handler/codec/mqtt/MqttVersion;
MQTT_3_1_1 protocolName intValue (Ljava/lang/String;IZZZIZZI)V 1io/netty/handler/codec/mqtt/MqttConnectReturnCode 6(B)Lio/netty/handler/codec/mqtt/MqttConnectReturnCode; 7(Lio/netty/handler/codec/mqtt/MqttConnectReturnCode;Z)V 7io/netty/handler/codec/mqtt/MqttMessageIdVariableHeader from <(I)Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader; isValidPublishTopicName (Ljava/lang/String;)Z '()Lio/netty/handler/codec/mqtt/MqttQoS; value (Ljava/lang/String;I)V isValidMessageId (I)Z name version isValidClientId >(Lio/netty/handler/codec/mqtt/MqttVersion;Ljava/lang/String;)Z
isWillFlag ()Z =(Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;[B)V :(Ljava/lang/String;Lio/netty/handler/codec/mqtt/MqttQoS;)V (Ljava/util/List;)V FAILURE %Lio/netty/handler/codec/mqtt/MqttQoS; (I)Ljava/lang/Integer; (Ljava/lang/Iterable;)V readRetainedSlice readerIndex io/netty/util/CharsetUtil UTF_8 Ljava/nio/charset/Charset; 0(IILjava/nio/charset/Charset;)Ljava/lang/String; readBytes ([B)Lio/netty/buffer/ByteBuf; 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 6 *?? ? ?
? @ ? ? ? ? ? ? I
*? ? *? ? ? C D E ?
? ?
? ? ? ? ? r? *? ? ? .? [ K ? O*,?
? **? ? ?
*? ? ? :-*? ? W?,*? ? :*? ? *?
*? ? &? Y? Y? ? *?
? ? ? ? ?*Y?
? d?
*? ? ? :-*? ? W?,*? ? !*?
*? ? ":*Y?
? d?
*?
? 5? Y? Y? #? *?
? $? *? ? !? %)? &? ? ?*? ? *? *? ? ? ':*? *? -? W? ':-*? ? W?,*? (? )W? ? *Y? +?? , F I Y ? ? ?JM ? ? ( I , K 4 L ? M F R I O K P X Q Y U c V l W w X ? Z ? [ ? ` ? ] ? ^ ? _ ? c ? f ? d ? i ? j ? k m o% p/ q2 p7 r<