netty5/codec-mqtt/src/main/java/io/netty/handler/codec/mqtt
Jongyeol Choi cceb99c359 Add exceptions for CONNACK's return code for MQTT 3.1 specification
Motivation:

http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html#connack
In MQTT 3.1, MQTT server must send a CONNACK with return code if CONNECT
request contains an invalid client identifier or an unacceptable protocol
version. The return code is one of MqttConnectReturnCode.
But, MqttDecoder throws DecoderException when CONNECT request contains
invalid value without distinguish situations. This makes it difficult
for codec-mqtt users to send a response with return code to clients.

Modifications:

Added exceptions for client identifier rejected and unacceptable
protocol version. MqttDecoder will throw those exceptions instead of
DecoderException.

Result:

Users of codec-mqtt can distinguish which is invalid when CONNECT
contains invalid client identifier or invalid protocol version. And, users can
send CONNACK with return code to clients.
2014-10-13 07:27:33 +02:00
..
MqttCodecUtil.java Change client id validation range in codec-mqtt 2014-10-13 07:17:40 +02:00
MqttConnAckMessage.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttConnAckVariableHeader.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttConnectMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttConnectPayload.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttConnectReturnCode.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttConnectVariableHeader.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttDecoder.java Add exceptions for CONNACK's return code for MQTT 3.1 specification 2014-10-13 07:27:33 +02:00
MqttEncoder.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttFixedHeader.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttIdentifierRejectedException.java Add exceptions for CONNACK's return code for MQTT 3.1 specification 2014-10-13 07:27:33 +02:00
MqttMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttMessageFactory.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttMessageIdVariableHeader.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttMessageType.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttPubAckMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttPublishMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttPublishVariableHeader.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttQoS.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttSubAckMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttSubAckPayload.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttSubscribeMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttSubscribePayload.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttTopicSubscription.java Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00
MqttUnacceptableProtocolVersionException.java Add exceptions for CONNACK's return code for MQTT 3.1 specification 2014-10-13 07:27:33 +02:00
MqttUnsubAckMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttUnsubscribeMessage.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttUnsubscribePayload.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
MqttVersion.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00
package-info.java Add MQTT protocol codec 2014-06-21 16:51:37 +09:00