isValidClientId() — netty Function Reference
Architecture documentation for the isValidClientId() function in MqttCodecUtil.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d8241bea_5097_fd1a_ef25_f6a275af9502["isValidClientId()"] 8cc4b5f5_1c6e_ed7b_93cd_8de978fc304c["MqttCodecUtil"] d8241bea_5097_fd1a_ef25_f6a275af9502 -->|defined in| 8cc4b5f5_1c6e_ed7b_93cd_8de978fc304c style d8241bea_5097_fd1a_ef25_f6a275af9502 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttCodecUtil.java lines 59–70
static boolean isValidClientId(MqttVersion mqttVersion, int maxClientIdLength, String clientId) {
if (mqttVersion == MqttVersion.MQTT_3_1) {
return clientId != null && clientId.length() >= MIN_CLIENT_ID_LENGTH &&
clientId.length() <= maxClientIdLength;
}
if (mqttVersion == MqttVersion.MQTT_3_1_1 || mqttVersion == MqttVersion.MQTT_5) {
// In 3.1.3.1 Client Identifier of MQTT 3.1.1 and 5.0 specifications, The Server MAY allow ClientId’s
// that contain more than 23 encoded bytes. And, The Server MAY allow zero-length ClientId.
return clientId != null;
}
throw new IllegalArgumentException(mqttVersion + " is unknown mqtt version");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isValidClientId() do?
isValidClientId() is a function in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttCodecUtil.java.
Where is isValidClientId() defined?
isValidClientId() is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttCodecUtil.java at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free