netty5/codec-mqtt/src
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
..
main/java/io/netty/handler/codec/mqtt Add exceptions for CONNACK's return code for MQTT 3.1 specification 2014-10-13 07:27:33 +02:00
test/java/io/netty/handler/codec/mqtt Overall clean-up on codec-mqtt 2014-06-21 16:51:37 +09:00