Class Session
- java.lang.Object
-
- rocks.xmpp.core.stream.model.StreamFeature
-
- rocks.xmpp.core.session.model.Session
-
- All Implemented Interfaces:
Comparable<StreamFeature>
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class rocks.xmpp.core.stream.model.StreamFeature
compareTo, requiresRestart
-
-
-
-
Constructor Detail
-
Session
public Session()
-
Session
public Session(Boolean optional)
-
-
Method Detail
-
isMandatory
public final boolean isMandatory()
Description copied from class:StreamFeature
Indicates, whether this feature is mandatory to negotiate. By default a feature is not mandatory. Override this method for mandatory-to-negotiate features.- Overrides:
isMandatory
in classStreamFeature
- Returns:
- True, if the feature is mandatory.
-
getPriority
public final int getPriority()
Description copied from class:StreamFeature
Gets the priority of the feature, i.e. when it will be negotiated during feature negotiation.- Overrides:
getPriority
in classStreamFeature
- Returns:
- The priority.
-
-