|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, 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 final 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
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |