netty5/codec-mqtt/src
Paul Lysak 7b736a3ae4
MQTT5: support multiple Subscription ID properties (#10734)
Motivation:

Subscription ID property of the PUBLISH message may be repeated multiple times, which wasn't taken into account when developing `MqttProperties` API.

Modification:

Store Subscription ID properties separately from others - in `MqttProperties.subscriptionIds`. 
Add `MqttProperties.getProperties` method to retrieve properties that may be repeated.
Change internal representation of User Properties for uniformity with Subscription ID - now they're stored in `MqttProperties.userProperties` rather than the common hash map.

Result:

Multiple Subscription ID properties can be set or retrieved.
2020-10-30 11:17:46 +01:00
..
main/java/io/netty/handler/codec/mqtt MQTT5: support multiple Subscription ID properties (#10734) 2020-10-30 11:17:46 +01:00
test/java/io/netty/handler/codec/mqtt MQTT5: support multiple Subscription ID properties (#10734) 2020-10-30 11:17:46 +01:00