|
||||||||||
| 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.MqttPersistableWireMessage
public abstract class MqttPersistableWireMessage
| Field Summary |
|---|
| 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 | |
|---|---|
MqttPersistableWireMessage(byte type)
|
|
| Method Summary | |
|---|---|
byte[] |
getHeaderBytes()
Returns the header bytes in an array. |
int |
getHeaderLength()
Returns the length of the header. |
int |
getHeaderOffset()
Returns the offset of the header within the byte array returned by MqttPersistable.getHeaderBytes(). |
byte[] |
getPayloadBytes()
Returns the payload bytes in an array. |
int |
getPayloadLength()
Returns the length of the payload. |
int |
getPayloadOffset()
Returns the offset of the payload within the byte array returned by MqttPersistable.getPayloadBytes(). |
| Methods inherited from class org.eclipse.paho.client.mqttv3.internal.wire.MqttWireMessage |
|---|
createWireMessage, createWireMessage, decodeUTF8, encodeMBI, encodeMessageId, encodeUTF8, getHeader, getKey, getMessageId, getMessageInfo, getPayload, getType, getVariableHeader, isMessageIdRequired, isRetryable, readMBI, setDuplicate, setMessageId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MqttPersistableWireMessage(byte type)
| Method Detail |
|---|
public byte[] getHeaderBytes()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getHeaderOffset()
and continue for MqttPersistable.getHeaderLength().
getHeaderBytes in interface MqttPersistableMqttPersistenceException
public int getHeaderLength()
throws MqttPersistenceException
MqttPersistable
getHeaderLength in interface MqttPersistableMqttPersistenceException
public int getHeaderOffset()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getHeaderBytes().
getHeaderOffset in interface MqttPersistableMqttPersistenceException
public byte[] getPayloadBytes()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getPayloadOffset()
and continue for MqttPersistable.getPayloadLength().
getPayloadBytes in interface MqttPersistableMqttPersistenceException
public int getPayloadLength()
throws MqttPersistenceException
MqttPersistable
getPayloadLength in interface MqttPersistableMqttPersistenceException
public int getPayloadOffset()
throws MqttPersistenceException
MqttPersistableMqttPersistable.getPayloadBytes().
getPayloadOffset in interface MqttPersistableMqttPersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||