public static enum Roster.SubscriptionMode extends Enum<Roster.SubscriptionMode>
Enum Constant and Description |
---|
accept_all
Automatically accept all subscription and unsubscription requests.
|
manual
Subscription requests are ignored, which means they must be manually
processed by registering a listener for presence packets and then looking
for any presence requests that have the type Presence.Type.SUBSCRIBE or
Presence.Type.UNSUBSCRIBE.
|
reject_all
Automatically reject all subscription requests.
|
Modifier and Type | Method and Description |
---|---|
static Roster.SubscriptionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Roster.SubscriptionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Roster.SubscriptionMode accept_all
public static final Roster.SubscriptionMode reject_all
public static final Roster.SubscriptionMode manual
public static Roster.SubscriptionMode[] values()
for (Roster.SubscriptionMode c : Roster.SubscriptionMode.values()) System.out.println(c);
public static Roster.SubscriptionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null