net.sf.xenqtt.message
Class ConnAckMessage

java.lang.Object
  extended by net.sf.xenqtt.message.MqttMessage
      extended by net.sf.xenqtt.message.ConnAckMessage

public final class ConnAckMessage
extends MqttMessage

The CONNACK message is the message sent by the server in response to a CONNECT request from a client.


Constructor Summary
ConnAckMessage(ByteBuffer buffer)
          Used to construct a received message.
ConnAckMessage(ConnectReturnCode returnCode)
          Used to construct a message for sending
 
Method Summary
 ConnectReturnCode getReturnCode()
           
 void setReturnCode(ConnectReturnCode returnCode)
          Sets the return code
 
Methods inherited from class net.sf.xenqtt.message.MqttMessage
byteBufferToHex, bytesToHex, equals, getMessageType, getQoS, getQoSLevel, getRemainingLength, hashCode, isAck, isAckable, isDuplicate, isRetain, setDuplicateFlag, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnAckMessage

public ConnAckMessage(ByteBuffer buffer)
Used to construct a received message.


ConnAckMessage

public ConnAckMessage(ConnectReturnCode returnCode)
Used to construct a message for sending

Method Detail

getReturnCode

public ConnectReturnCode getReturnCode()
Returns:
The resulting status of the connect attempt

setReturnCode

public void setReturnCode(ConnectReturnCode returnCode)
Sets the return code



Copyright © 2013. All Rights Reserved.