public final class Presence extends AbstractPresence implements ClientStreamElement
<presence/> element for the client namespace ('jabber:client').AbstractPresence.Show, AbstractPresence.Status, AbstractPresence.Type| Constructor and Description |
|---|
Presence()
Constructs an empty presence to indicate availability.
|
Presence(AbstractPresence.Show show)
Constructs a presence with a specific 'show' value.
|
Presence(AbstractPresence.Show show,
Byte priority)
Constructs a presence with a specific 'show' value and priority.
|
Presence(AbstractPresence.Type type)
Constructs a presence of a specific type.
|
Presence(AbstractPresence.Type type,
Byte priority)
Constructs a presence of a specific type.
|
Presence(Byte priority)
Constructs a presence with a priority.
|
Presence(Jid to)
Constructs a directed presence.
|
Presence(Jid to,
AbstractPresence.Show show,
String status)
Constructs a directed presence with a specific 'show' attribute and status.
|
Presence(Jid to,
AbstractPresence.Type type,
AbstractPresence.Show show,
Collection<AbstractPresence.Status> status,
Byte priority,
String id,
Jid from,
String language,
Collection<?> extensions,
StanzaError error)
Constructs a presence with all possible values.
|
Presence(Jid to,
AbstractPresence.Type type,
String status)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
Presence(Jid to,
AbstractPresence.Type type,
String status,
String id)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
| Modifier and Type | Method and Description |
|---|---|
Presence |
createError(Condition condition)
Creates an error response for this stanza.
|
Presence |
createError(StanzaError error)
Creates an error response for this stanza.
|
Presence |
withFrom(Jid from)
Creates a copy of this stanza and adds a from attribute to it.
|
compareTo, getExtension, getExtensions, getPriority, getShow, getStatus, getStatuses, getType, isAvailable, setPriority, setShow, setStatus, setType, toStringpublic Presence()
public Presence(Byte priority)
priority - The priority.public Presence(AbstractPresence.Show show)
show - The 'show' value.public Presence(AbstractPresence.Show show, Byte priority)
show - The 'show' value.priority - The priority.public Presence(AbstractPresence.Type type)
type - The type.public Presence(AbstractPresence.Type type, Byte priority)
type - The type.priority - The priority.public Presence(Jid to)
to - The recipient.public Presence(Jid to, AbstractPresence.Show show, String status)
to - The recipient.show - The 'show' value.status - The status.public Presence(Jid to, AbstractPresence.Type type, String status)
to - The recipient.type - The type.status - The status.public Presence(Jid to, AbstractPresence.Type type, String status, String id)
to - The recipient.type - The type.status - The status.id - The id.public Presence(Jid to, AbstractPresence.Type type, AbstractPresence.Show show, Collection<AbstractPresence.Status> status, Byte priority, String id, Jid from, String language, Collection<?> extensions, StanzaError error)
to - The recipient.type - The type.show - The 'show' value.status - The status.priority - The priority.id - The id.from - The 'from' attribute.language - The language.extensions - The extensions.error - The stanza error.public final Presence createError(StanzaError error)
StanzacreateError in class Stanzaerror - The error which is appended to the stanza.Stanza.getError()public final Presence createError(Condition condition)
StanzacreateError in class Stanzacondition - The error condition which is appended to the stanza.Stanza.getError()Copyright © 2014–2015 XMPP.rocks. All rights reserved.