Class Session

  • All Implemented Interfaces:
    Comparable<StreamFeature>

    public final class Session
    extends StreamFeature
    The implementation of the <session/> element to establish a session.

    3. Session Establishment

    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 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 class StreamFeature
        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 class StreamFeature
        Returns:
        The priority.