public static enum Presence.Type extends Enum<Presence.Type>
Presence.Type.unavailable -- signals that the
entity is no longer available for communication.
Presence.Type.subscribe -- the sender wishes to
subscribe to the recipient's presence.
Presence.Type.subscribed -- the sender has allowed
the recipient to receive their presence.
Presence.Type.unsubscribe -- the sender is
unsubscribing from another entity's presence.
Presence.Type.unsubcribed -- the subscription
request has been denied or a previously-granted subscription has been cancelled.
Presence.Type.probe -- a request for an entity's current
presence; SHOULD be generated only by a server on behalf of a user.
Presence.Type.error -- an error has occurred regarding
processing or delivery of a previously-sent presence stanza.
| Enum Constant and Description |
|---|
error
An error has occurred regarding processing or delivery
of a previously-sent presence stanza.
|
probe
A request for an entity's current presence; SHOULD be
generated only by a server on behalf of a user.
|
subscribe
The sender wishes to subscribe to the recipient's presence.
|
subscribed
The sender has allowed the recipient to receive their presence.
|
unavailable
Typically short text message used in line-by-line chat interfaces.
|
unsubscribe
The sender is unsubscribing from another entity's presence.
|
unsubscribed
The subscription request has been denied or a previously-granted
subscription has been cancelled.
|
| Modifier and Type | Method and Description |
|---|---|
static Presence.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Presence.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Presence.Type unavailable
public static final Presence.Type subscribe
public static final Presence.Type subscribed
public static final Presence.Type unsubscribe
public static final Presence.Type unsubscribed
public static final Presence.Type probe
public static final Presence.Type error
public static Presence.Type[] values()
for (Presence.Type c : Presence.Type.values()) System.out.println(c);
public static Presence.Type 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 © 2009–2017 Ignite Realtime. All rights reserved.