netty5/codec-mqtt/src/main/java/io/netty/handler/codec/mqtt
Chi-Joung So a9863f8128 Add headers to MqttMessage returned by MqttDecoder in case of DecoderException (#8219)
Motivation:
When the MqttDecoder decodes a message larger than the 'maxBytesInMessage' a DecoderException is thrown and a MqttMessage with just the failure cause is returned. Even if I can't handle the message, I might want to send an ACK so that I won't have to worry about it again.

Modification:
The DecoderException is thrown after the variableHeader is decoded. The fixed and variable headers are then added to the MqttMessage along with the failure cause.

Result:
The invalid MqttMessage will have headers if available.
2018-08-31 15:06:09 +02:00
..
MqttCodecUtil.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttConnAckMessage.java Overall clean-up on codec-mqtt 2014-06-21 16:52:28 +09:00
MqttConnAckVariableHeader.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttConnectMessage.java Add MQTT protocol codec 2014-06-21 16:52:10 +09:00
MqttConnectPayload.java Add null checks before converting to string to avoid NPE. 2017-08-11 07:14:39 +02:00
MqttConnectReturnCode.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttConnectVariableHeader.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttDecoder.java Add headers to MqttMessage returned by MqttDecoder in case of DecoderException (#8219) 2018-08-31 15:06:09 +02:00
MqttEncoder.java MQTT encode doesn't complain if password is set but username not 2017-09-14 09:37:37 -07:00
MqttFixedHeader.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttIdentifierRejectedException.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttMessage.java Small performance improvements 2014-11-20 00:10:06 -05:00
MqttMessageBuilders.java MQTT encode doesn't complain if password is set but username not 2017-09-14 09:37:37 -07:00
MqttMessageFactory.java Add headers to MqttMessage returned by MqttDecoder in case of DecoderException (#8219) 2018-08-31 15:06:09 +02:00
MqttMessageIdVariableHeader.java Small performance improvements 2014-11-20 00:10:06 -05:00
MqttMessageType.java Overall clean-up on codec-mqtt 2014-06-21 16:52:28 +09:00
MqttPubAckMessage.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttPublishMessage.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
MqttPublishVariableHeader.java Issue №6802. Not specified field in MQTT codec (#6807) 2017-06-05 13:21:49 -07:00
MqttQoS.java Add supporting MQTT 3.1.1 2014-11-15 09:07:12 +01:00
MqttSubAckMessage.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttSubAckPayload.java Small performance improvements 2014-11-20 00:10:06 -05:00
MqttSubscribeMessage.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttSubscribePayload.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttTopicSubscription.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttUnacceptableProtocolVersionException.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttUnsubAckMessage.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttUnsubscribeMessage.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
MqttUnsubscribePayload.java fix the typos 2017-04-20 04:56:09 +02:00
MqttVersion.java Cleanup of codec-mqtt 2016-03-24 11:02:24 +01:00
package-info.java Add MQTT protocol codec 2014-06-21 16:52:10 +09:00