Class Session

  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by org.jivesoftware.smack.packet.Session

public class Session
extends IQ

IQ packet that will be sent to the server to establish a session.

If a server supports sessions, it MUST include a session element in the stream features it advertises to a client after the completion of stream authentication. Upon being informed that session establishment is required by the server the client MUST establish a session if it desires to engage in instant messaging and presence functionality.

For more information refer to the following link.

Gaston Dombiak

Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
Field Summary
Fields inherited from class org.jivesoftware.smack.packet.Packet
Constructor Summary
Method Summary
 String getChildElementXML()
          Returns the sub-element XML section of the IQ packet, or null if there isn't one.
Methods inherited from class org.jivesoftware.smack.packet.IQ
getType, setType, toXML
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, removeExtension, setError, setFrom, setPacketID, setProperty, setTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Session()
Method Detail


public String getChildElementXML()
Description copied from class: IQ
Returns the sub-element XML section of the IQ packet, or null if there isn't one. Packet extensions must be included, if any are defined.

Extensions of this class must override this method.

Specified by:
getChildElementXML in class IQ
the child element section of the IQ XML.


Copyright © 2003-2007 Jive Software.