
classes.io.netty.handler.codec.mqtt.MqttEncoder.class Maven / Gradle / Ivy
???? 2?
s ? ? ?
p t
n
p
p
p
p
p
p
p
p
?
!"
!#
$%
&'
()*+
(,
p-
&. /0
&1
!2
&3
!4
&5
!6
$7
p89:
p;
<=
p>
<?
<@
pA
!B
<C
!D
!E
!F
G
HI
HJ
KL
M
N
OPQRSRTU
NV
iW
NX
Y
M
Z
[\]
^
_`a
Mb
]c
d
e
<f
gV
h
<i
gW
<j
nkl
m
n op
Wqr
pst
p ? puvw InnerClasses INSTANCE )Lio/netty/handler/codec/mqtt/MqttEncoder; ()V Code LineNumberTable LocalVariableTable this encode d(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/mqtt/MqttMessage;Ljava/util/List;)V ctx (Lio/netty/channel/ChannelHandlerContext; msg )Lio/netty/handler/codec/mqtt/MqttMessage; out Ljava/util/List; LocalVariableTypeTable $Ljava/util/List;
Exceptionsx Signature x(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/mqtt/MqttMessage;Ljava/util/List;)V doEncode f(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttMessage;)Lio/netty/buffer/ByteBuf; byteBufAllocator "Lio/netty/buffer/ByteBufAllocator; message
StackMapTable encodeConnectMessage m(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttConnectMessage;)Lio/netty/buffer/ByteBuf; 0Lio/netty/handler/codec/mqtt/MqttConnectMessage; payloadBufferSize I mqttFixedHeader -Lio/netty/handler/codec/mqtt/MqttFixedHeader; variableHeader 7Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader; payload 0Lio/netty/handler/codec/mqtt/MqttConnectPayload; mqttVersion )Lio/netty/handler/codec/mqtt/MqttVersion; clientIdentifier Ljava/lang/String; clientIdentifierBytes [B willTopic willTopicBytes willMessage willMessageBytes userName
userNameBytes password
passwordBytes protocolNameBytes variableHeaderBufferSize variablePartSize fixedHeaderBufferSize buf Lio/netty/buffer/ByteBuf;y z{|}] ?~ getConnVariableHeaderFlag :(Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;)I flagByte encodeConnAckMessage m(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttConnAckMessage;)Lio/netty/buffer/ByteBuf; 0Lio/netty/handler/codec/mqtt/MqttConnAckMessage; encodeSubscribeMessage o(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttSubscribeMessage;)Lio/netty/buffer/ByteBuf; topicName topicNameBytes topic 3Lio/netty/handler/codec/mqtt/MqttTopicSubscription; i$ Ljava/util/Iterator; 2Lio/netty/handler/codec/mqtt/MqttSubscribeMessage; 9Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader; 2Lio/netty/handler/codec/mqtt/MqttSubscribePayload; messageIdl? encodeUnsubscribeMessage q(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttUnsubscribeMessage;)Lio/netty/buffer/ByteBuf; 4Lio/netty/handler/codec/mqtt/MqttUnsubscribeMessage; 4Lio/netty/handler/codec/mqtt/MqttUnsubscribePayload;? encodeSubAckMessage l(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttSubAckMessage;)Lio/netty/buffer/ByteBuf; qos /Lio/netty/handler/codec/mqtt/MqttSubAckMessage; encodePublishMessage m(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttPublishMessage;)Lio/netty/buffer/ByteBuf; 0Lio/netty/handler/codec/mqtt/MqttPublishMessage; 7Lio/netty/handler/codec/mqtt/MqttPublishVariableHeader;
? 6encodeMessageWithOnlySingleByteFixedHeaderAndMessageId msgId *encodeMessageWithOnlySingleByteFixedHeader getFixedHeaderByte1 0(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I header ret writeVariableLengthInt (Lio/netty/buffer/ByteBuf;I)V digit num getVariableLengthInt (I)I count encodeStringUtf8 (Ljava/lang/String;)[B s M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V [Lio/netty/handler/codec/MessageToMessageEncoder;
SourceFile MqttEncoder.java RuntimeVisibleAnnotations? Sharable *Lio/netty/channel/ChannelHandler$Sharable; y z??? ? ????????z????? .io/netty/handler/codec/mqtt/MqttConnectMessage ? ? .io/netty/handler/codec/mqtt/MqttConnAckMessage ? ? .io/netty/handler/codec/mqtt/MqttPublishMessage ? ? 0io/netty/handler/codec/mqtt/MqttSubscribeMessage ? ? 2io/netty/handler/codec/mqtt/MqttUnsubscribeMessage ? ? -io/netty/handler/codec/mqtt/MqttSubAckMessage ? ? ? ? ? ? "java/lang/IllegalArgumentException java/lang/StringBuilder Unknown message type: ???????? y? ?? ??{????}??| ????? ;io/netty/handler/codec/mqtt/MqttIdentifierRejectedException invalid clientIdentifier: y? ? ? ???? ? ???? ???? ???? ?? ? ?y?? ? ?~?? ? ????? ? ??????????? ?????????? ?? ??????????? 1io/netty/handler/codec/mqtt/MqttTopicSubscription ?? ????? ????? java/lang/String ??????? java/lang/Integer?? ?? ??????????? ?? 7io/netty/handler/codec/mqtt/MqttMessageIdVariableHeader????????? 'io/netty/handler/codec/mqtt/MqttMessage ? 'io/netty/handler/codec/mqtt/MqttEncoder w x .io/netty/handler/codec/MessageToMessageEncoder )io/netty/handler/codec/mqtt/MqttEncoder$1 java/lang/Exception io/netty/buffer/ByteBufAllocator +io/netty/handler/codec/mqtt/MqttFixedHeader 5io/netty/handler/codec/mqtt/MqttConnectVariableHeader .io/netty/handler/codec/mqtt/MqttConnectPayload 'io/netty/handler/codec/mqtt/MqttVersion io/netty/buffer/ByteBuf 0io/netty/handler/codec/mqtt/MqttSubscribePayload java/util/Iterator 2io/netty/handler/codec/mqtt/MqttUnsubscribePayload 5io/netty/handler/codec/mqtt/MqttPublishVariableHeader? (io/netty/channel/ChannelHandler$Sharable &io/netty/channel/ChannelHandlerContext alloc $()Lio/netty/buffer/ByteBufAllocator; java/util/List add (Ljava/lang/Object;)Z 6$SwitchMap$io$netty$handler$codec$mqtt$MqttMessageType [I fixedHeader /()Lio/netty/handler/codec/mqtt/MqttFixedHeader; messageType /()Lio/netty/handler/codec/mqtt/MqttMessageType; +io/netty/handler/codec/mqtt/MqttMessageType ordinal ()I append -(Ljava/lang/String;)Ljava/lang/StringBuilder; value (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V 9()Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader; 2()Lio/netty/handler/codec/mqtt/MqttConnectPayload; name version fromProtocolNameAndLevel >(Ljava/lang/String;B)Lio/netty/handler/codec/mqtt/MqttVersion; )io/netty/handler/codec/mqtt/MqttCodecUtil isValidClientId >(Lio/netty/handler/codec/mqtt/MqttVersion;Ljava/lang/String;)Z "io/netty/util/internal/EmptyArrays EMPTY_BYTES
isWillFlag ()Z hasUserName hasPassword ()[B buffer (I)Lio/netty/buffer/ByteBuf; writeByte
writeShort
writeBytes ([B)Lio/netty/buffer/ByteBuf; keepAliveTimeSeconds ([BII)Lio/netty/buffer/ByteBuf; isWillRetain willQos isCleanSession 9()Lio/netty/handler/codec/mqtt/MqttConnAckVariableHeader; 5io/netty/handler/codec/mqtt/MqttConnAckVariableHeader isSessionPresent connectReturnCode 5()Lio/netty/handler/codec/mqtt/MqttConnectReturnCode; 1io/netty/handler/codec/mqtt/MqttConnectReturnCode byteValue ()B ;()Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader; 4()Lio/netty/handler/codec/mqtt/MqttSubscribePayload; topicSubscriptions ()Ljava/util/List; iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; qualityOfService '()Lio/netty/handler/codec/mqtt/MqttQoS; #io/netty/handler/codec/mqtt/MqttQoS 6()Lio/netty/handler/codec/mqtt/MqttUnsubscribePayload; topics 1()Lio/netty/handler/codec/mqtt/MqttSubAckPayload; -io/netty/handler/codec/mqtt/MqttSubAckPayload grantedQoSLevels size intValue 9()Lio/netty/handler/codec/mqtt/MqttPublishVariableHeader; ()Lio/netty/buffer/ByteBuf; duplicate qosLevel
readableBytes 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; isDup isRetain io/netty/util/CharsetUtil UTF_8 Ljava/nio/charset/Charset; getBytes (Ljava/nio/charset/Charset;)[B io/netty/channel/ChannelHandler 1 p s w x y z { / *? ? | ( } ~ x ? { p -+? ,? ? W? |
, - } * ~ x ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? { % ?? +? ? ? .? ? F O X a j s | | | | | ? ? ?*+? ?
?*+? ? ?*+?
? ?*+? ? ?*+? ? ?*+? ? ?*+? ?*+? ?? Y? Y? ? +? ? ? ? ? ? ? | *
9 T ; ] > f A o D x G ? J ? Q ? V ? Y } ? ? ? ? ? ? ?
? T
? ? { Z ?=+? N+? !:+? ":? #? $?? %:? &:? '? ? (Y? Y? )? ? ? ? *?? +:?``=? ,: ? ? +? ? -:
? .:? ? +? ? -:? /?
?``=?``=? 0:
?
? +? ? -:? 1? ?``=? 2:? ? +? ? -:? 3? ?``=? 4:?``6`6? 5`6*`? 6 :-? 7? 8W? 9?? :W? ;W? $? 8W?