|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PresenceType> com.google.appengine.api.xmpp.PresenceType
public enum PresenceType
Values for the 'type' attribute of presences, taken from RFC3921. These are only types from
stanzas dealing with presence. Types used for subscriptions are enumerated in
SubscriptionType
even though they are both communicated via presence stanzas.
Enum Constant Summary | |
---|---|
AVAILABLE
Signals that an entity is online and available for communication. |
|
PROBE
A request for an entity's current presence. |
|
UNAVAILABLE
Signals that an entity is no longer available for communication. |
Method Summary | |
---|---|
static PresenceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PresenceType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, 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 PresenceType AVAILABLE
public static final PresenceType UNAVAILABLE
public static final PresenceType PROBE
Method Detail |
---|
public static PresenceType[] values()
for (PresenceType c : PresenceType.values()) System.out.println(c);
public static PresenceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |