public class MqttConnack extends MqttAck
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY |
duplicate, MESSAGE_TYPE_CONNACK, MESSAGE_TYPE_CONNECT, MESSAGE_TYPE_DISCONNECT, MESSAGE_TYPE_PINGREQ, MESSAGE_TYPE_PINGRESP, MESSAGE_TYPE_PUBACK, MESSAGE_TYPE_PUBCOMP, MESSAGE_TYPE_PUBLISH, MESSAGE_TYPE_PUBREC, MESSAGE_TYPE_PUBREL, MESSAGE_TYPE_SUBACK, MESSAGE_TYPE_SUBSCRIBE, MESSAGE_TYPE_UNSUBACK, MESSAGE_TYPE_UNSUBSCRIBE, msgId, STRING_ENCODING| Constructor and Description |
|---|
MqttConnack(byte info,
byte[] variableHeader) |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Returns a key associated with the message.
|
int |
getReturnCode() |
boolean |
getSessionPresent() |
protected byte[] |
getVariableHeader() |
boolean |
isMessageIdRequired()
Returns whether or not this message needs to include a message ID.
|
String |
toString() |
getMessageInfocreateWireMessage, createWireMessage, decodeUTF8, encodeMBI, encodeMessageId, encodeUTF8, getHeader, getMessageId, getPayload, getType, isRetryable, readMBI, setDuplicate, setMessageIdpublic static final String KEY
public MqttConnack(byte info,
byte[] variableHeader)
throws IOException
IOExceptionpublic int getReturnCode()
protected byte[] getVariableHeader()
throws MqttException
getVariableHeader in class MqttWireMessageMqttExceptionpublic boolean isMessageIdRequired()
isMessageIdRequired in class MqttWireMessagepublic String getKey()
MqttWireMessagegetKey in class MqttWireMessagepublic String toString()
public boolean getSessionPresent()
Copyright © 2017 Eclipse Paho. All Rights Reserved.