Package org.jivesoftware.smack.packet
Class PresenceBuilder
java.lang.Object
org.jivesoftware.smack.packet.StanzaBuilder<PresenceBuilder>
org.jivesoftware.smack.packet.MessageOrPresenceBuilder<Presence,PresenceBuilder>
org.jivesoftware.smack.packet.PresenceBuilder
- All Implemented Interfaces:
PresenceView,StanzaView,XmlLangElement
public final class PresenceBuilder
extends MessageOrPresenceBuilder<Presence,PresenceBuilder>
implements PresenceView
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuild()getMode()Returns the mode of the presence update.intReturns the priority of the presence.byteReturns the priority of the presence.Returns the status message of the presence update, ornullif there is not a status.getThis()getType()Returns the type of this presence stanza.ofType(Presence.Type type) setMode(Presence.Mode mode) setPriority(int priority) setPriority(Byte priority) Methods inherited from class org.jivesoftware.smack.packet.StanzaBuilder
addExtension, addExtensions, addOptExtensions, buildIqData, buildMessage, buildMessage, buildMessageFrom, buildMessageFrom, buildPresence, buildPresence, buildPresenceFrom, buildPresenceFrom, buildResponse, from, from, getError, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getLanguage, getStanzaId, getTo, overrideExtension, removeExtension, removeExtension, setError, setLanguage, throwIfNoStanzaId, to, to, toString, willBuildStanzaWithIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.StanzaView
getError, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getStanzaId, getTo, hasExtension, hasExtension, hasExtensionMethods inherited from interface org.jivesoftware.smack.packet.XmlLangElement
getLanguage
-
Method Details
-
addStanzaSpecificAttributes
- Specified by:
addStanzaSpecificAttributesin classStanzaBuilder<PresenceBuilder>
-
ofType
-
setStatus
-
setPriority
-
setPriority
-
setMode
-
getThis
- Specified by:
getThisin classStanzaBuilder<PresenceBuilder>
-
build
- Specified by:
buildin classMessageOrPresenceBuilder<Presence,PresenceBuilder>
-
getType
Description copied from interface:PresenceViewReturns the type of this presence stanza.- Specified by:
getTypein interfacePresenceView- Returns:
- the type of the presence stanza.
-
getStatus
Description copied from interface:PresenceViewReturns the status message of the presence update, ornullif there is not a status. The status is free-form text describing a user's presence (i.e., "gone to lunch").- Specified by:
getStatusin interfacePresenceView- Returns:
- the status message.
-
getPriority
public int getPriority()Description copied from interface:PresenceViewReturns the priority of the presence.- Specified by:
getPriorityin interfacePresenceView- Returns:
- the priority.
- See Also:
-
getPriorityByte
public byte getPriorityByte()Description copied from interface:PresenceViewReturns the priority of the presence.- Specified by:
getPriorityBytein interfacePresenceView- Returns:
- the priority.
- See Also:
-
getMode
Description copied from interface:PresenceViewReturns the mode of the presence update.- Specified by:
getModein interfacePresenceView- Returns:
- the mode.
-