📄 servicediscoverymanager.html
字号:
<BR> Publishes new items to a parent entity.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/smackx/ServiceDiscoveryManager.html#publishItems(java.lang.String, java.lang.String, org.jivesoftware.smackx.packet.DiscoverItems)">publishItems</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> entityID, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> node, <A HREF="../../../org/jivesoftware/smackx/packet/DiscoverItems.html" title="class in org.jivesoftware.smackx.packet">DiscoverItems</A> discoverItems)</CODE><BR> Publishes new items to a parent entity and node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/smackx/ServiceDiscoveryManager.html#removeFeature(java.lang.String)">removeFeature</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> feature)</CODE><BR> Removes the specified feature from the supported features by this XMPP entity.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/smackx/ServiceDiscoveryManager.html#removeNodeInformationProvider(java.lang.String)">removeNodeInformationProvider</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> node)</CODE><BR> Removes the NodeInformationProvider responsible for providing information (ie items) related to a given node.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/smackx/ServiceDiscoveryManager.html#setIdentityName(java.lang.String)">setIdentityName</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE><BR> Sets the name of the client that will be returned when asked for the client identity in a disco request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/smackx/ServiceDiscoveryManager.html#setIdentityType(java.lang.String)">setIdentityType</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> type)</CODE><BR> Sets the type of client that will be returned when asked for the client identity in a disco request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/smackx/ServiceDiscoveryManager.html#setNodeInformationProvider(java.lang.String, org.jivesoftware.smackx.NodeInformationProvider)">setNodeInformationProvider</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> node, <A HREF="../../../org/jivesoftware/smackx/NodeInformationProvider.html" title="interface in org.jivesoftware.smackx">NodeInformationProvider</A> listener)</CODE><BR> Sets the NodeInformationProvider responsible for providing information (ie items) related to a given node.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ServiceDiscoveryManager(org.jivesoftware.smack.XMPPConnection)"><!-- --></A><H3>ServiceDiscoveryManager</H3><PRE>public <B>ServiceDiscoveryManager</B>(<A HREF="../../../org/jivesoftware/smack/XMPPConnection.html" title="class in org.jivesoftware.smack">XMPPConnection</A> connection)</PRE><DL><DD>Creates a new ServiceDiscoveryManager for a given XMPPConnection. This means that the service manager will respond to any service discovery request that the connection may receive.<P><DL><DT><B>Parameters:</B><DD><CODE>connection</CODE> - the connection to which a ServiceDiscoveryManager is going to be created.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getInstanceFor(org.jivesoftware.smack.XMPPConnection)"><!-- --></A><H3>getInstanceFor</H3><PRE>public static <A HREF="../../../org/jivesoftware/smackx/ServiceDiscoveryManager.html" title="class in org.jivesoftware.smackx">ServiceDiscoveryManager</A> <B>getInstanceFor</B>(<A HREF="../../../org/jivesoftware/smack/XMPPConnection.html" title="class in org.jivesoftware.smack">XMPPConnection</A> connection)</PRE><DL><DD>Returns the ServiceDiscoveryManager instance associated with a given XMPPConnection.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>connection</CODE> - the connection used to look for the proper ServiceDiscoveryManager.<DT><B>Returns:</B><DD>the ServiceDiscoveryManager associated with a given XMPPConnection.</DL></DD></DL><HR><A NAME="getIdentityName()"><!-- --></A><H3>getIdentityName</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getIdentityName</B>()</PRE><DL><DD>Returns the name of the client that will be returned when asked for the client identity in a disco request. The name could be any value you need to identity this client.<P><DD><DL><DT><B>Returns:</B><DD>the name of the client that will be returned when asked for the client identity in a disco request.</DL></DD></DL><HR><A NAME="setIdentityName(java.lang.String)"><!-- --></A><H3>setIdentityName</H3><PRE>public static void <B>setIdentityName</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Sets the name of the client that will be returned when asked for the client identity in a disco request. The name could be any value you need to identity this client.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the client that will be returned when asked for the client identity in a disco request.</DL></DD></DL><HR><A NAME="getIdentityType()"><!-- --></A><H3>getIdentityType</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getIdentityType</B>()</PRE><DL><DD>Returns the type of client that will be returned when asked for the client identity in a disco request. The valid types are defined by the category client. Follow this link to learn the possible types: <a href="http://www.jabber.org/registrar/disco-categories.html#client">Jabber::Registrar</a>.<P><DD><DL><DT><B>Returns:</B><DD>the type of client that will be returned when asked for the client identity in a disco request.</DL></DD></DL><HR><A NAME="setIdentityType(java.lang.String)"><!-- --></A><H3>setIdentityType</H3><PRE>public static void <B>setIdentityType</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> type)</PRE><DL><DD>Sets the type of client that will be returned when asked for the client identity in a disco request. The valid types are defined by the category client. Follow this link to learn the possible types: <a href="http://www.jabber.org/registrar/disco-categories.html#client">Jabber::Registrar</a>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the type of client that will be returned when asked for the client identity in a disco request.</DL></DD></DL><HR><A NAME="setNodeInformationProvider(java.lang.String, org.jivesoftware.smackx.NodeInformationProvider)"><!-- --></A><H3>setNodeInformationProvider</H3><PRE>public void <B>setNodeInformationProvider</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> node, <A HREF="../../../org/jivesoftware/smackx/NodeInformationProvider.html" title="interface in org.jivesoftware.smackx">NodeInformationProvider</A> listener)</PRE><DL><DD>Sets the NodeInformationProvider responsible for providing information (ie items) related to a given node. Every time this client receives a disco request regarding the items of a given node, the provider associated to that node will be the responsible for providing the requested information.<p> In MUC, a node could be 'http://jabber.org/protocol/muc#rooms' which means that the NodeInformationProvider will provide information about the rooms where the user has joined.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the node whose items will be provided by the NodeInformationProvider.<DD><CODE>listener</CODE> - the NodeInformationProvider responsible for providing items related to the node.</DL></DD></DL><HR><A NAME="removeNodeInformationProvider(java.lang.String)"><!-- --></A><H3>removeNodeInformationProvider</H3><PRE>public void <B>removeNodeInformationProvider</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> node)</PRE><DL><DD>Removes the NodeInformationProvider responsible for providing information (ie items) related to a given node. This means that no more information will be available for the specified node. In MUC, a node could be 'http://jabber.org/protocol/muc#rooms' which means that the NodeInformationProvider will provide information about the rooms where the user has joined.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the node to remove the associated NodeInformationProvider.</DL></DD></DL><HR><A NAME="getFeatures()"><!-- --></A><H3>getFeatures</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A><<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> <B>getFeatures</B>()</PRE><DL><DD>Returns the supported features by this XMPP entity.<P><DD><DL><DT><B>Returns:</B><DD>an Iterator on the supported features by this XMPP entity.</DL></DD></DL><HR><A NAME="addFeature(java.lang.String)"><!-- --></A><H3>addFeature</H3><PRE>public void <B>addFeature</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> feature)</PRE><DL><DD>Registers that a new feature is supported by this XMPP entity. When this client is
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -