public final class Session extends StreamFeature
The implementation of the <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.Constructor and Description |
---|
Session() |
Session(java.lang.Boolean optional) |
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.
|
java.lang.String |
toString() |
compareTo, requiresRestart
public final boolean isMandatory()
StreamFeature
Indicates, whether this feature is mandatory to negotiate. By default a feature is not mandatory. Override this method for mandatory-to-negotiate features.
isMandatory
in class StreamFeature
public final int getPriority()
StreamFeature
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.
getPriority
in class StreamFeature
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.