public static enum UserRoster.SubscriptionMode extends Enum<UserRoster.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 UserRoster.SubscriptionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserRoster.SubscriptionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserRoster.SubscriptionMode accept_all
public static final UserRoster.SubscriptionMode reject_all
public static final UserRoster.SubscriptionMode manual
public static UserRoster.SubscriptionMode[] values()
for (UserRoster.SubscriptionMode c : UserRoster.SubscriptionMode.values()) System.out.println(c);
public static UserRoster.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 nullCopyright © 2014. All Rights Reserved.