Class Subscription

    • Constructor Detail

      • Subscription

        public Subscription​(Jid subscriptionJid)
        Used to constructs a subscription request to the root node with the specified JID.
        Parameters:
        subscriptionJid - The subscriber JID
      • Subscription

        public Subscription​(Jid subscriptionJid,
                            String nodeId)
        Used to constructs a subscription request to the specified node with the specified JID.
        Parameters:
        subscriptionJid - The subscriber JID
        nodeId - The node id
      • Subscription

        public Subscription​(Jid subscriptionJid,
                            Subscription.State state)
        Construct a subscription change request to the specified state.
        Parameters:
        subscriptionJid - The subscriber JID
        state - The requested new state
      • Subscription

        public Subscription​(Jid jid,
                            String nodeId,
                            String subscriptionId,
                            Subscription.State state)
        Constructs a representation of a subscription reply to the specified node and JID. The server will have supplied the subscription id and current state.
        Parameters:
        jid - The JID the request was made under
        nodeId - The node subscribed to
        subscriptionId - The id of this subscription
        state - The current state of the subscription
      • Subscription

        public Subscription​(Jid jid,
                            String nodeId,
                            String subscriptionId,
                            Subscription.State state,
                            boolean configRequired)
        Constructs a representation of a subscription reply to the specified node and JID. The server will have supplied the subscription id and current state and whether the subscription need to be configured.
        Parameters:
        jid - The JID the request was made under
        nodeId - The node subscribed to
        subscriptionId - The id of this subscription
        state - The current state of the subscription
        configRequired - Is configuration required to complete the subscription