⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servicediscoverymanager.html

📁 开源项目smack的API文件
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 queried for its information the registered features will be answered.<p> Since no packet is actually sent to the server it is safe to perform this operation before logging to the server. In fact, you may want to configure the supported features before logging to the server so that the information is already available if it is required upon login.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>feature</CODE> - the feature to register as supported.</DL></DD></DL><HR><A NAME="removeFeature(java.lang.String)"><!-- --></A><H3>removeFeature</H3><PRE>public void <B>removeFeature</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>&nbsp;feature)</PRE><DL><DD>Removes the specified feature from the supported features by this XMPP entity.<p> Since no packet is actually sent to the server it is safe to perform this operation before logging to the server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>feature</CODE> - the feature to remove from the supported features.</DL></DD></DL><HR><A NAME="includesFeature(java.lang.String)"><!-- --></A><H3>includesFeature</H3><PRE>public boolean <B>includesFeature</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>&nbsp;feature)</PRE><DL><DD>Returns true if the specified feature is registered in the ServiceDiscoveryManager.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>feature</CODE> - the feature to look for.<DT><B>Returns:</B><DD>a boolean indicating if the specified featured is registered or not.</DL></DD></DL><HR><A NAME="discoverInfo(java.lang.String)"><!-- --></A><H3>discoverInfo</H3><PRE>public <A HREF="../../../org/jivesoftware/smackx/packet/DiscoverInfo.html" title="class in org.jivesoftware.smackx.packet">DiscoverInfo</A> <B>discoverInfo</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>&nbsp;entityID)                          throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Returns the discovered information of a given XMPP entity addressed by its JID.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>entityID</CODE> - the address of the XMPP entity.<DT><B>Returns:</B><DD>the discovered information.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the operation failed for some reason.</DL></DD></DL><HR><A NAME="discoverInfo(java.lang.String, java.lang.String)"><!-- --></A><H3>discoverInfo</H3><PRE>public <A HREF="../../../org/jivesoftware/smackx/packet/DiscoverInfo.html" title="class in org.jivesoftware.smackx.packet">DiscoverInfo</A> <B>discoverInfo</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>&nbsp;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>&nbsp;node)                          throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Returns the discovered information of a given XMPP entity addressed by its JID and note attribute. Use this message only when trying to query information which is not  directly addressable.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>entityID</CODE> - the address of the XMPP entity.<DD><CODE>node</CODE> - the attribute that supplements the 'jid' attribute.<DT><B>Returns:</B><DD>the discovered information.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the operation failed for some reason.</DL></DD></DL><HR><A NAME="discoverItems(java.lang.String)"><!-- --></A><H3>discoverItems</H3><PRE>public <A HREF="../../../org/jivesoftware/smackx/packet/DiscoverItems.html" title="class in org.jivesoftware.smackx.packet">DiscoverItems</A> <B>discoverItems</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>&nbsp;entityID)                            throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Returns the discovered items of a given XMPP entity addressed by its JID.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>entityID</CODE> - the address of the XMPP entity.<DT><B>Returns:</B><DD>the discovered information.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the operation failed for some reason.</DL></DD></DL><HR><A NAME="discoverItems(java.lang.String, java.lang.String)"><!-- --></A><H3>discoverItems</H3><PRE>public <A HREF="../../../org/jivesoftware/smackx/packet/DiscoverItems.html" title="class in org.jivesoftware.smackx.packet">DiscoverItems</A> <B>discoverItems</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>&nbsp;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>&nbsp;node)                            throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Returns the discovered items of a given XMPP entity addressed by its JID and note attribute. Use this message only when trying to query information which is not  directly addressable.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>entityID</CODE> - the address of the XMPP entity.<DD><CODE>node</CODE> - the attribute that supplements the 'jid' attribute.<DT><B>Returns:</B><DD>the discovered items.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the operation failed for some reason.</DL></DD></DL><HR><A NAME="canPublishItems(java.lang.String)"><!-- --></A><H3>canPublishItems</H3><PRE>public boolean <B>canPublishItems</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>&nbsp;entityID)                        throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Returns true if the server supports publishing of items. A client may wish to publish items to the server so that the server can provide items associated to the client. These items will be returned by the server whenever the server receives a disco request targeted to the bare address of the client (i.e. user@host.com).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>entityID</CODE> - the address of the XMPP entity.<DT><B>Returns:</B><DD>true if the server supports publishing of items.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the operation failed for some reason.</DL></DD></DL><HR><A NAME="publishItems(java.lang.String, org.jivesoftware.smackx.packet.DiscoverItems)"><!-- --></A><H3>publishItems</H3><PRE>public void <B>publishItems</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>&nbsp;entityID,                         <A HREF="../../../org/jivesoftware/smackx/packet/DiscoverItems.html" title="class in org.jivesoftware.smackx.packet">DiscoverItems</A>&nbsp;discoverItems)                  throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Publishes new items to a parent entity. The item elements to publish MUST have at least  a 'jid' attribute specifying the Entity ID of the item, and an action attribute which  specifies the action being taken for that item. Possible action values are: "update" and  "remove".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>entityID</CODE> - the address of the XMPP entity.<DD><CODE>discoverItems</CODE> - the DiscoveryItems to publish.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the operation failed for some reason.</DL></DD></DL><HR><A NAME="publishItems(java.lang.String, java.lang.String, org.jivesoftware.smackx.packet.DiscoverItems)"><!-- --></A><H3>publishItems</H3><PRE>public void <B>publishItems</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>&nbsp;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>&nbsp;node,                         <A HREF="../../../org/jivesoftware/smackx/packet/DiscoverItems.html" title="class in org.jivesoftware.smackx.packet">DiscoverItems</A>&nbsp;discoverItems)                  throws <A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></PRE><DL><DD>Publishes new items to a parent entity and node. The item elements to publish MUST have at  least a 'jid' attribute specifying the Entity ID of the item, and an action attribute which  specifies the action being taken for that item. Possible action values are: "update" and  "remove".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>entityID</CODE> - the address of the XMPP entity.<DD><CODE>node</CODE> - the attribute that supplements the 'jid' attribute.<DD><CODE>discoverItems</CODE> - the DiscoveryItems to publish.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jivesoftware/smack/XMPPException.html" title="class in org.jivesoftware.smack">XMPPException</A></CODE> - if the operation failed for some reason.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Smack</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jivesoftware/smackx/RosterExchangeManager.html" title="class in org.jivesoftware.smackx"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jivesoftware/smackx/SharedGroupManager.html" title="class in org.jivesoftware.smackx"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/jivesoftware/smackx/ServiceDiscoveryManager.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ServiceDiscoveryManager.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &copy; 2003-2007 Jive Software. </i></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -