|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage
org.eclipse.paho.client.mqttv3.internal.wire.MqttConnect
public class MqttConnect
An on-the-wire representation of an MQTT CONNECT message.
| Field Summary | |
|---|---|
static String |
KEY
|
| Fields inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage |
|---|
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 Summary | |
|---|---|
MqttConnect(byte info,
byte[] data)
Constructor for an on the wire MQTT connect message |
|
MqttConnect(String clientId,
boolean cleanSession,
int keepAliveInterval,
String userName,
char[] password,
MqttMessage willMessage,
String willDestination)
|
|
| Method Summary | |
|---|---|
String |
getKey()
Returns a key associated with the message. |
protected byte |
getMessageInfo()
Sub-classes should override this to encode the message info. |
byte[] |
getPayload()
Sub-classes should override this method to supply the payload bytes. |
protected byte[] |
getVariableHeader()
|
boolean |
isCleanSession()
|
boolean |
isMessageIdRequired()
Returns whether or not this message needs to include a message ID. |
String |
toString()
|
| Methods inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage |
|---|
createWireMessage, createWireMessage, decodeUTF8, encodeMBI, encodeMessageId, encodeUTF8, getHeader, getMessageId, getType, isRetryable, readMBI, setDuplicate, setMessageId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String KEY
| Constructor Detail |
|---|
public MqttConnect(byte info,
byte[] data)
throws IOException,
MqttException
info - data -
IOException
MqttException
public MqttConnect(String clientId,
boolean cleanSession,
int keepAliveInterval,
String userName,
char[] password,
MqttMessage willMessage,
String willDestination)
| Method Detail |
|---|
public String toString()
toString in class MqttWireMessageprotected byte getMessageInfo()
MqttWireMessage
getMessageInfo in class MqttWireMessagepublic boolean isCleanSession()
protected byte[] getVariableHeader()
throws MqttException
getVariableHeader in class MqttWireMessageMqttException
public byte[] getPayload()
throws MqttException
MqttWireMessage
getPayload in class MqttWireMessageMqttExceptionpublic boolean isMessageIdRequired()
isMessageIdRequired in class MqttWireMessagepublic String getKey()
MqttWireMessage
getKey in class MqttWireMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||