Interface SubscriptionState

  • All Known Subinterfaces:
    RosterItem
    All Known Implementing Classes:
    Contact, DefinedState

    public interface SubscriptionState
    Represents a presence subscription state.

    There are four primary subscription states (these states are described from the perspective of the user, not the contact):

    • None: The user does not have a subscription to the contact's presence, and the contact does not have a subscription to the user's presence.
    • To: The user has a subscription to the contact's presence, but the contact does not have a subscription to the user's presence.
    • From: The contact has a subscription to the user's presence, but the user does not have a subscription to the contact's presence.
    • Both: Both the user and the contact have subscriptions to each other's presence (i.e., the union of 'from' and 'to').

    The foregoing states are supplemented by various sub-states related to pending inbound and outbound subscriptions.

    See Also:
    DefinedState, RFC 6121, Appendix A. Subscription States