Class StreamManagement.Enabled

  • All Implemented Interfaces:
    StreamElement
    Enclosing class:
    StreamManagement

    public static final class StreamManagement.Enabled
    extends Object
    implements StreamElement
    The implementation of the <enabled/> element in the urn:xmpp:sm:3 namespace.
    • Constructor Detail

      • Enabled

        public Enabled()
      • Enabled

        public Enabled​(String id,
                       Boolean resume)
        Parameters:
        id - The stream id.
        resume - If the server allows session resumption.
      • Enabled

        public Enabled​(String id,
                       Boolean resume,
                       Integer max,
                       String location)
        Parameters:
        id - The stream id.
        resume - If the server allows session resumption.
        max - The server's preferred maximum resumption time.
        location - The server's preferred IP address or hostname (optionally with a port) for reconnection.
    • Method Detail

      • getId

        public final String getId()
        The stream id.
        Returns:
        The stream id.
      • isResume

        public final boolean isResume()
        If the server allows session resumption.
        Returns:
        If the server allows session resumption.
      • getLocation

        public final String getLocation()
        The server's preferred IP address or hostname (optionally with a port) for reconnection.
        Returns:
        The server's preferred IP address or hostname (optionally with a port) for reconnection
      • getMax

        public final Integer getMax()
        Gets the server's preferred maximum resumption time.
        Returns:
        The server's preferred maximum resumption time.