public final class Session extends StreamFeature
<session/> element to establish a session.
If a server supports sessions, it MUST include a
<session/>element qualified by the 'urn:ietf:params:xml:ns:xmpp-session' namespace in the stream features it advertises to a client after the completion of stream authentication as defined in [XMPP-CORE].Upon being so informed that session establishment is required (and after completing resource binding), the client MUST establish a session if it desires to engage in instant messaging and presence functionality; it completes this step by sending to the server an IQ stanza of type "set" containing an empty
<session/>child element qualified by the 'urn:ietf:params:xml:ns:xmpp-session' namespace.
Note: Session establishment has been removed from the updated specification.
This class is immutable.| Modifier and Type | Method and Description |
|---|---|
int |
getPriority()
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
|
boolean |
isMandatory()
Indicates, whether this feature is mandatory to negotiate.
|
String |
toString() |
compareTopublic Session()
public Session(Boolean optional)
public final boolean isMandatory()
StreamFeatureisMandatory in class StreamFeaturepublic final int getPriority()
StreamFeaturegetPriority in class StreamFeatureCopyright © 2014–2016 XMPP.rocks. All rights reserved.