Class DiscoverInfoBuilder
java.lang.Object
org.jivesoftware.smack.packet.StanzaBuilder<IB>
org.jivesoftware.smack.packet.AbstractIqBuilder<IB>
org.jivesoftware.smack.packet.IqBuilder<DiscoverInfoBuilder,DiscoverInfo>
org.jivesoftware.smackx.disco.packet.DiscoverInfoBuilder
- All Implemented Interfaces:
IqView
,StanzaView
,XmlLangElement
,DiscoverInfoView
public class DiscoverInfoBuilder
extends IqBuilder<DiscoverInfoBuilder,DiscoverInfo>
implements DiscoverInfoView
-
Field Summary
Fields inherited from class org.jivesoftware.smack.packet.AbstractIqBuilder
type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFeature
(String feature) addFeature
(DiscoverInfo.Feature feature) addFeatures
(Collection<String> features) addIdentities
(Collection<DiscoverInfo.Identity> identities) addIdentity
(DiscoverInfo.Identity identity) build()
static DiscoverInfoBuilder
buildResponseFor
(DiscoverInfo request, IQ.ResponseType responseType) Returns the discovered features of an XMPP entity.Returns the discovered identities of an XMPP entity.getNode()
Returns the node attribute that supplements the 'jid' attribute.getThis()
Methods inherited from class org.jivesoftware.smack.packet.AbstractIqBuilder
addStanzaSpecificAttributes, createErrorResponse, createResponse, createResponse, getType
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, willBuildStanzaWithId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.packet.IqView
getType, isRequestIQ, isResponseIQ
Methods inherited from interface org.jivesoftware.smack.packet.StanzaView
getError, getExtension, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getStanzaId, getTo, hasExtension, hasExtension, hasExtension
Methods inherited from interface org.jivesoftware.smack.packet.XmlLangElement
getLanguage
-
Constructor Details
-
DiscoverInfoBuilder
-
-
Method Details
-
getThis
- Specified by:
getThis
in classStanzaBuilder<DiscoverInfoBuilder>
-
addFeatures
-
addFeature
-
addFeature
-
addIdentities
-
addIdentity
-
setNode
-
build
- Specified by:
build
in classIqBuilder<DiscoverInfoBuilder,
DiscoverInfo>
-
buildWithoutValidiation
-
getFeatures
Description copied from interface:DiscoverInfoView
Returns the discovered features of an XMPP entity.- Specified by:
getFeatures
in interfaceDiscoverInfoView
- Returns:
- an unmodifiable list of the discovered features of an XMPP entity
-
getIdentities
Description copied from interface:DiscoverInfoView
Returns the discovered identities of an XMPP entity.- Specified by:
getIdentities
in interfaceDiscoverInfoView
- Returns:
- an unmodifiable list of the discovered identities
-
getNode
Description copied from interface:DiscoverInfoView
Returns the node attribute that supplements the 'jid' attribute. A node is merely something that is associated with a JID and for which the JID can provide information.Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
- Specified by:
getNode
in interfaceDiscoverInfoView
- Returns:
- the node attribute that supplements the 'jid' attribute
-
buildResponseFor
public static DiscoverInfoBuilder buildResponseFor(DiscoverInfo request, IQ.ResponseType responseType)
-