📄 discoveryquerymsg.html
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DiscoveryQueryMsg()"><!-- --></A><H3>DiscoveryQueryMsg</H3><PRE>public <B>DiscoveryQueryMsg</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAttr()"><!-- --></A><H3>getAttr</H3><PRE>public java.lang.String <B>getAttr</B>()</PRE><DL><DD>returns the Attr value<P><DD><DL><DT><B>Returns:</B><DD>String value of Attribute</DL></DD></DL><HR><A NAME="getDiscoveryType()"><!-- --></A><H3>getDiscoveryType</H3><PRE>public int <B>getDiscoveryType</B>()</PRE><DL><DD>Get the response type<P><DD><DL><DT><B>Returns:</B><DD>int PEER, or GROUP discovery type response</DL></DD></DL><HR><A NAME="getDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getDocument</H3><PRE>public abstract <A HREF="../../../net/jxta/document/Document.html" title="interface in net.jxta.document">Document</A> <B>getDocument</B>(<A HREF="../../../net/jxta/document/MimeMediaType.html" title="class in net.jxta.document">MimeMediaType</A> asMimeType)</PRE><DL><DD>Write advertisement into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. Two standard document forms are defined. "text/text" encodes the document in a form nice for printing out, and "text/xml" which provides an XML representation.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>asMimeType</CODE> - mime-type format requested<DT><B>Returns:</B><DD>Document representaion of the document as an advertisement</DL></DD></DL><HR><A NAME="getPeerAdv()"><!-- --></A><H3>getPeerAdv</H3><PRE>public java.lang.String <B>getPeerAdv</B>()</PRE><DL><DD>returns the responding's peer advertisement<P><DD><DL><DT><B>Returns:</B><DD>String handlername name</DL></DD></DL><HR><A NAME="getPeerAdvertisement()"><!-- --></A><H3>getPeerAdvertisement</H3><PRE>public <A HREF="../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> <B>getPeerAdvertisement</B>()</PRE><DL><DD>returns the responding's peer advertisement<P><DD><DL><DT><B>Returns:</B><DD>String handlername peer advertisement</DL></DD></DL><HR><A NAME="getThreshold()"><!-- --></A><H3>getThreshold</H3><PRE>public int <B>getThreshold</B>()</PRE><DL><DD>Get the Threshold for number of responses<P><DD><DL><DT><B>Returns:</B><DD>int threshold</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public java.lang.String <B>getValue</B>()</PRE><DL><DD>returns the value of Attr<P><DD><DL><DT><B>Returns:</B><DD>String</DL></DD></DL><HR><A NAME="setAttr(java.lang.String)"><!-- --></A><H3>setAttr</H3><PRE>public void <B>setAttr</B>(java.lang.String attr)</PRE><DL><DD>set the attr<P><DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - attribut of the query</DL></DD></DL><HR><A NAME="setDiscoveryType(int)"><!-- --></A><H3>setDiscoveryType</H3><PRE>public void <B>setDiscoveryType</B>(int type)</PRE><DL><DD>set the Response type whether it's peer, or group dsicovery<P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - type of discovery</DL></DD></DL><HR><A NAME="setPeerAdv(java.lang.String)"><!-- --></A><H3>setPeerAdv</H3><PRE>public void <B>setPeerAdv</B>(java.lang.String peer)</PRE><DL><DD>set the Response type whether it's peer, or group dsicovery<P><DD><DL><DT><B>Parameters:</B><DD><CODE>peer</CODE> - </DL></DD></DL><HR><A NAME="setThreshold(int)"><!-- --></A><H3>setThreshold</H3><PRE>public void <B>setThreshold</B>(int threshold)</PRE><DL><DD>set the threshold<P><DD><DL><DT><B>Parameters:</B><DD><CODE>threshold</CODE> - value to be set</DL></DD></DL><HR><A NAME="setValue(java.lang.String)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(java.lang.String value)</PRE><DL><DD>set the query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - value of the attribute to query</DL></DD></DL><HR><A NAME="getAdvertisementType()"><!-- --></A><H3>getAdvertisementType</H3><PRE>public static java.lang.String <B>getAdvertisementType</B>()</PRE><DL><DD>All messages have a type (in xml this is !doctype) which identifies the message<P><DD><DL><DT><B>Returns:</B><DD>String "jxta:DiscoveryQuery"</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=3 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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DiscoveryQueryMsg.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JXTA J2SE</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../net/jxta/protocol/ConfigParams.html" title="class in net.jxta.protocol"><B>PREV CLASS</B></A> <A HREF="../../../net/jxta/protocol/DiscoveryResponseMsg.html" title="class in net.jxta.protocol"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="DiscoveryQueryMsg.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -