org.fusesource.mqtt.codec
Class CONNECT

java.lang.Object
  extended by org.fusesource.mqtt.codec.CONNECT
All Implemented Interfaces:
MessageSupport.Message

public class CONNECT
extends java.lang.Object
implements MessageSupport.Message

Author:
Hiram Chirino

Field Summary
static byte TYPE
           
 
Constructor Summary
CONNECT()
           
CONNECT(CONNECT other)
           
 
Method Summary
 boolean cleanSession()
           
 CONNECT cleanSession(boolean cleanSession)
           
 org.fusesource.hawtbuf.UTF8Buffer clientId()
           
 CONNECT clientId(org.fusesource.hawtbuf.UTF8Buffer clientId)
           
 CONNECT decode(MQTTFrame frame)
           
 MQTTFrame encode()
           
 short keepAlive()
           
 CONNECT keepAlive(short keepAlive)
           
 byte messageType()
           
 org.fusesource.hawtbuf.UTF8Buffer password()
           
 CONNECT password(org.fusesource.hawtbuf.UTF8Buffer password)
           
 java.lang.String toString()
           
 org.fusesource.hawtbuf.UTF8Buffer userName()
           
 CONNECT userName(org.fusesource.hawtbuf.UTF8Buffer userName)
           
 int version()
           
 CONNECT version(int version)
           
 org.fusesource.hawtbuf.UTF8Buffer willMessage()
           
 CONNECT willMessage(org.fusesource.hawtbuf.UTF8Buffer willMessage)
           
 QoS willQos()
           
 CONNECT willQos(QoS willQos)
           
 boolean willRetain()
           
 CONNECT willRetain(boolean willRetain)
           
 org.fusesource.hawtbuf.UTF8Buffer willTopic()
           
 CONNECT willTopic(org.fusesource.hawtbuf.UTF8Buffer willTopic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final byte TYPE
See Also:
Constant Field Values
Constructor Detail

CONNECT

public CONNECT()

CONNECT

public CONNECT(CONNECT other)
Method Detail

messageType

public byte messageType()
Specified by:
messageType in interface MessageSupport.Message

decode

public CONNECT decode(MQTTFrame frame)
               throws java.net.ProtocolException
Specified by:
decode in interface MessageSupport.Message
Throws:
java.net.ProtocolException

encode

public MQTTFrame encode()
Specified by:
encode in interface MessageSupport.Message

cleanSession

public boolean cleanSession()

cleanSession

public CONNECT cleanSession(boolean cleanSession)

clientId

public org.fusesource.hawtbuf.UTF8Buffer clientId()

clientId

public CONNECT clientId(org.fusesource.hawtbuf.UTF8Buffer clientId)

keepAlive

public short keepAlive()

keepAlive

public CONNECT keepAlive(short keepAlive)

password

public org.fusesource.hawtbuf.UTF8Buffer password()

password

public CONNECT password(org.fusesource.hawtbuf.UTF8Buffer password)

userName

public org.fusesource.hawtbuf.UTF8Buffer userName()

userName

public CONNECT userName(org.fusesource.hawtbuf.UTF8Buffer userName)

willMessage

public org.fusesource.hawtbuf.UTF8Buffer willMessage()

willMessage

public CONNECT willMessage(org.fusesource.hawtbuf.UTF8Buffer willMessage)

willQos

public QoS willQos()

willQos

public CONNECT willQos(QoS willQos)

willRetain

public boolean willRetain()

willRetain

public CONNECT willRetain(boolean willRetain)

willTopic

public org.fusesource.hawtbuf.UTF8Buffer willTopic()

willTopic

public CONNECT willTopic(org.fusesource.hawtbuf.UTF8Buffer willTopic)

version

public int version()

version

public CONNECT version(int version)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.