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 Constructor Description DiscoverInfoBuilder(DiscoverInfo discoverInfo, java.lang.String stanzaId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscoverInfoBuilder
addFeature(java.lang.String feature)
DiscoverInfoBuilder
addFeature(DiscoverInfo.Feature feature)
DiscoverInfoBuilder
addFeatures(java.util.Collection<java.lang.String> features)
DiscoverInfoBuilder
addIdentities(java.util.Collection<DiscoverInfo.Identity> identities)
DiscoverInfoBuilder
addIdentity(DiscoverInfo.Identity identity)
DiscoverInfo
build()
static DiscoverInfoBuilder
buildResponseFor(DiscoverInfo request, IQ.ResponseType responseType)
DiscoverInfo
buildWithoutValidiation()
java.util.List<DiscoverInfo.Feature>
getFeatures()
Returns the discovered features of an XMPP entity.java.util.List<DiscoverInfo.Identity>
getIdentities()
Returns the discovered identities of an XMPP entity.java.lang.String
getNode()
Returns the node attribute that supplements the 'jid' attribute.DiscoverInfoBuilder
getThis()
DiscoverInfoBuilder
setNode(java.lang.String node)
-
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 Detail
-
DiscoverInfoBuilder
public DiscoverInfoBuilder(DiscoverInfo discoverInfo, java.lang.String stanzaId)
-
-
Method Detail
-
getThis
public DiscoverInfoBuilder getThis()
- Specified by:
getThis
in classStanzaBuilder<DiscoverInfoBuilder>
-
addFeatures
public DiscoverInfoBuilder addFeatures(java.util.Collection<java.lang.String> features)
-
addFeature
public DiscoverInfoBuilder addFeature(java.lang.String feature)
-
addFeature
public DiscoverInfoBuilder addFeature(DiscoverInfo.Feature feature)
-
addIdentities
public DiscoverInfoBuilder addIdentities(java.util.Collection<DiscoverInfo.Identity> identities)
-
addIdentity
public DiscoverInfoBuilder addIdentity(DiscoverInfo.Identity identity)
-
setNode
public DiscoverInfoBuilder setNode(java.lang.String node)
-
build
public DiscoverInfo build()
- Specified by:
build
in classIqBuilder<DiscoverInfoBuilder,DiscoverInfo>
-
buildWithoutValidiation
public DiscoverInfo buildWithoutValidiation()
-
getFeatures
public java.util.List<DiscoverInfo.Feature> 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
public java.util.List<DiscoverInfo.Identity> 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
public java.lang.String 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)
-
-