com.google.appengine.api.xmpp
Enum PresenceType
- java.lang.Object
-
- java.lang.Enum<PresenceType>
-
- com.google.appengine.api.xmpp.PresenceType
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PresenceType>
Deprecated.This API has been deprecated.
@Deprecated public enum PresenceType extends java.lang.Enum<PresenceType>
Values for the 'type' attribute of presences. These are only types from stanzas dealing with presence. Types used for subscriptions are enumerated inSubscriptionType
even though they are both communicated via presence stanzas.- See Also:
- RFC 3921, Section 2.2.1 for the specification of XMPP message Presence Types.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description AVAILABLE
Deprecated.Signals that an entity is online and available for communication.PROBE
Deprecated.A request for an entity's current presence.UNAVAILABLE
Deprecated.Signals that an entity is no longer available for communication.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static PresenceType
valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name.static PresenceType[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVAILABLE
public static final PresenceType AVAILABLE
Deprecated.Signals that an entity is online and available for communication.
-
UNAVAILABLE
public static final PresenceType UNAVAILABLE
Deprecated.Signals that an entity is no longer available for communication.
-
PROBE
public static final PresenceType PROBE
Deprecated.A request for an entity's current presence.
-
-
Method Detail
-
values
public static PresenceType[] values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PresenceType c : PresenceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PresenceType valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-