1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package io.netty.handler.codec.mqtt;
18
19
20
21
22
23 public final class MqttSubscribeMessage extends MqttMessage {
24
25 public MqttSubscribeMessage(
26 MqttFixedHeader mqttFixedHeader,
27 MqttMessageIdAndPropertiesVariableHeader variableHeader,
28 MqttSubscribePayload payload) {
29 super(mqttFixedHeader, variableHeader, payload);
30 }
31
32 public MqttSubscribeMessage(
33 MqttFixedHeader mqttFixedHeader,
34 MqttMessageIdVariableHeader variableHeader,
35 MqttSubscribePayload payload) {
36 this(mqttFixedHeader, variableHeader.withDefaultEmptyProperties(), payload);
37 }
38
39 @Override
40 public MqttMessageIdVariableHeader variableHeader() {
41 return (MqttMessageIdVariableHeader) super.variableHeader();
42 }
43
44 public MqttMessageIdAndPropertiesVariableHeader idAndPropertiesVariableHeader() {
45 return (MqttMessageIdAndPropertiesVariableHeader) super.variableHeader();
46 }
47
48 @Override
49 public MqttSubscribePayload payload() {
50 return (MqttSubscribePayload) super.payload();
51 }
52 }