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
Constructors -
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 DiscoverInfoBuilderbuildResponseFor(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, getTypeMethods 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.IqView
getType, isRequestIQ, isResponseIQMethods 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
-
Constructor Details
-
DiscoverInfoBuilder
-
-
Method Details
-
getThis
- Specified by:
getThisin classStanzaBuilder<DiscoverInfoBuilder>
-
addFeatures
-
addFeature
-
addFeature
-
addIdentities
-
addIdentity
-
setNode
-
build
- Specified by:
buildin classIqBuilder<DiscoverInfoBuilder,DiscoverInfo>
-
buildWithoutValidiation
-
getFeatures
Description copied from interface:DiscoverInfoViewReturns the discovered features of an XMPP entity.- Specified by:
getFeaturesin interfaceDiscoverInfoView- Returns:
- an unmodifiable list of the discovered features of an XMPP entity
-
getIdentities
Description copied from interface:DiscoverInfoViewReturns the discovered identities of an XMPP entity.- Specified by:
getIdentitiesin interfaceDiscoverInfoView- Returns:
- an unmodifiable list of the discovered identities
-
getNode
Description copied from interface:DiscoverInfoViewReturns 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:
getNodein interfaceDiscoverInfoView- Returns:
- the node attribute that supplements the 'jid' attribute
-
buildResponseFor
public static DiscoverInfoBuilder buildResponseFor(DiscoverInfo request, IQ.ResponseType responseType)
-