|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Roster.SubscriptionMode>
org.jivesoftware.smack.Roster.SubscriptionMode
public static enum Roster.SubscriptionMode
An enumeration for the subscription mode options.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Roster.SubscriptionMode accept_all
public static final Roster.SubscriptionMode reject_all
public static final Roster.SubscriptionMode manual
| Method Detail |
|---|
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 name
NullPointerException - if the argument is null
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||