![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.handler.codec.mqtt.MqttEncoder.class Maven / Gradle / Ivy
The newest version!
???? 2?
v ? ? ?
s w
q
s
s
s
s
s
s
s
s
?
!"
!#
$%
!&
!'()
(
*+
,-./
-
s0
*1 23
*4
!5
*6
*7
$8
s9:;
s<
=>
s?
=@
=A
sB
!C
=D
!E
!F
!G
H
IJ
IK
LM
N
O
PQRSTSUV
QW
lX
QY
Z
N
[
\]^
_
`ab
Nc
`d
e
f
=g
hW
i
=j
hX
=k
qlm
n
o pq
Zrs
stu
s ? svwx 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;
Exceptionsy 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;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; 2Lio/netty/handler/codec/mqtt/MqttSubscribeMessage; 9Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader; 2Lio/netty/handler/codec/mqtt/MqttSubscribePayload; messageIdm?? 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; { |??? ? ????????{????? .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: ???????? {? ?? ??|????~?????? 'io/netty/handler/codec/DecoderException 0Without a username, the password MUST be not set} ????? ;io/netty/handler/codec/mqtt/MqttIdentifierRejectedException invalid clientIdentifier: ? ? ???? ????? ???? ?? ? ?z?? ? ??? ? ????? ? ??????????? ?????????? ?? ???????????? 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 y z .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; hasUserName ()Z hasPassword )io/netty/handler/codec/mqtt/MqttCodecUtil isValidClientId >(Lio/netty/handler/codec/mqtt/MqttVersion;Ljava/lang/String;)Z "io/netty/util/internal/EmptyArrays EMPTY_BYTES willMessageInBytes ()[B
isWillFlag passwordInBytes 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 s v y z { | } / *? ? ~ ) ? z ? ? } p -+? ,? ? W? ~
- . * ? z ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ) ?? +? ? ? .? ? F O X a j s | | | | | ? ? ?*+? ?
?*+? ? ?*+?
? ?*+? ? ?*+? ? ?*+? ? ?*+? ?*+? ?? Y? Y? ? +? ? ? ? ? ? ? ~ . : T <