MqttConnectPayload Class — netty Architecture
Architecture documentation for the MqttConnectPayload class in MqttConnectPayload.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0f7cdd30_cc7d_a2f7_b7a2_9678b7214db6["MqttConnectPayload"] ae1d9f44_1134_2b43_0786_791667d8e19b["MqttConnectPayload.java"] 0f7cdd30_cc7d_a2f7_b7a2_9678b7214db6 -->|defined in| ae1d9f44_1134_2b43_0786_791667d8e19b 9cf42b43_4c39_67de_8d34_d8b7509843e5["MqttConnectPayload()"] 0f7cdd30_cc7d_a2f7_b7a2_9678b7214db6 -->|method| 9cf42b43_4c39_67de_8d34_d8b7509843e5 f240da48_fce1_75d4_21ac_d74e583a6055["String()"] 0f7cdd30_cc7d_a2f7_b7a2_9678b7214db6 -->|method| f240da48_fce1_75d4_21ac_d74e583a6055 67128358_4361_ef0e_d3ca_b4397d8860a0["MqttProperties()"] 0f7cdd30_cc7d_a2f7_b7a2_9678b7214db6 -->|method| 67128358_4361_ef0e_d3ca_b4397d8860a0 5929fc24_1c26_cca0_1b97_0f1defe4bdf9["willMessageInBytes()"] 0f7cdd30_cc7d_a2f7_b7a2_9678b7214db6 -->|method| 5929fc24_1c26_cca0_1b97_0f1defe4bdf9 a230e622_af51_88cd_0dfe_89c83ec62c87["passwordInBytes()"] 0f7cdd30_cc7d_a2f7_b7a2_9678b7214db6 -->|method| a230e622_af51_88cd_0dfe_89c83ec62c87
Relationship Graph
Source Code
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttConnectPayload.java lines 27–137
public final class MqttConnectPayload {
private final String clientIdentifier;
private final MqttProperties willProperties;
private final String willTopic;
private final byte[] willMessage;
private final String userName;
private final byte[] password;
/**
* @deprecated use {@link MqttConnectPayload#MqttConnectPayload(String,
* MqttProperties, String, byte[], String, byte[])} instead
*/
@Deprecated
public MqttConnectPayload(
String clientIdentifier,
String willTopic,
String willMessage,
String userName,
String password) {
this(
clientIdentifier,
MqttProperties.NO_PROPERTIES,
willTopic,
willMessage.getBytes(CharsetUtil.UTF_8),
userName,
password.getBytes(CharsetUtil.UTF_8));
}
public MqttConnectPayload(
String clientIdentifier,
String willTopic,
byte[] willMessage,
String userName,
byte[] password) {
this(clientIdentifier,
MqttProperties.NO_PROPERTIES,
willTopic,
willMessage,
userName,
password);
}
public MqttConnectPayload(
String clientIdentifier,
MqttProperties willProperties,
String willTopic,
byte[] willMessage,
String userName,
byte[] password) {
this.clientIdentifier = clientIdentifier;
this.willProperties = MqttProperties.withEmptyDefaults(willProperties);
this.willTopic = willTopic;
this.willMessage = willMessage;
this.userName = userName;
this.password = password;
}
public String clientIdentifier() {
return clientIdentifier;
}
public MqttProperties willProperties() {
return willProperties;
}
public String willTopic() {
return willTopic;
}
/**
* @deprecated use {@link MqttConnectPayload#willMessageInBytes()} instead
*/
@Deprecated
public String willMessage() {
return willMessage == null ? null : new String(willMessage, CharsetUtil.UTF_8);
}
public byte[] willMessageInBytes() {
return willMessage;
}
Source
Frequently Asked Questions
What is the MqttConnectPayload class?
MqttConnectPayload is a class in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttConnectPayload.java.
Where is MqttConnectPayload defined?
MqttConnectPayload is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttConnectPayload.java at line 27.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free