public class Session extends IQ
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Session.Feature |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
QUERY_ELEMENTDEFAULT_LANGUAGE, ITEM, language, TEXT| Constructor and Description |
|---|
Session() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
createErrorResponse, createResultIQ, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getTo, hasExtension, hasExtension, removeExtension, removeExtension, setError, setFrom, setLanguage, setPacketID, setTo, toStringpublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public java.lang.String getChildElementXML()
IQExtensions of this class must override this method.
getChildElementXML in class IQ