📄 discoveryresponsemsg.html
字号:
<DL></DL></DL><HR><A NAME="expirations"><!-- --></A><H3>expirations</H3><PRE>protected java.util.Vector <B>expirations</B></PRE><DL><DD>Description of the Field<P><DL></DL></DL><HR><A NAME="peerAdvertisement"><!-- --></A><H3>peerAdvertisement</H3><PRE>protected <A HREF="../../../net/jxta/protocol/PeerAdvertisement.html" title="class in net.jxta.protocol">PeerAdvertisement</A> <B>peerAdvertisement</B></PRE><DL><DD>Description of the Field<P><DL></DL></DL><HR><A NAME="peeradv"><!-- --></A><H3>peeradv</H3><PRE>protected java.lang.String <B>peeradv</B></PRE><DL><DD>Description of the Field<P><DL></DL></DL><HR><A NAME="responses"><!-- --></A><H3>responses</H3><PRE>protected java.util.Vector <B>responses</B></PRE><DL><DD>Description of the Field<P><DL></DL></DL><HR><A NAME="type"><!-- --></A><H3>type</H3><PRE>protected int <B>type</B></PRE><DL><DD>Description of the Field<P><DL></DL></DL><HR><A NAME="value"><!-- --></A><H3>value</H3><PRE>protected java.lang.String <B>value</B></PRE><DL><DD>Description of the Field<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DiscoveryResponseMsg()"><!-- --></A><H3>DiscoveryResponseMsg</H3><PRE>public <B>DiscoveryResponseMsg</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="getAdvertisements()"><!-- --></A><H3>getAdvertisements</H3><PRE>public java.util.Enumeration <B>getAdvertisements</B>()</PRE><DL><DD>returns the response advertisement objects<P><DD><DL><DT><B>Returns:</B><DD>Enumeration of Advertisements responses</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 type of discovery message 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 format.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>asMimeType</CODE> - mime-typ requested<DT><B>Returns:</B><DD>Document document that represents the advertisement</DL></DD></DL><HR><A NAME="getExpirations()"><!-- --></A><H3>getExpirations</H3><PRE>public java.util.Enumeration <B>getExpirations</B>()</PRE><DL><DD>Gets the expirations attribute of the DiscoveryResponseMsg object<P><DD><DL><DT><B>Returns:</B><DD>The expirations value</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 peer advertisement</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="getQueryAttr()"><!-- --></A><H3>getQueryAttr</H3><PRE>public java.lang.String <B>getQueryAttr</B>()</PRE><DL><DD>returns the attributes used by the query<P><DD><DL><DT><B>Returns:</B><DD>String attribute of the query</DL></DD></DL><HR><A NAME="getQueryValue()"><!-- --></A><H3>getQueryValue</H3><PRE>public java.lang.String <B>getQueryValue</B>()</PRE><DL><DD>returns the value used by the query<P><DD><DL><DT><B>Returns:</B><DD>String value used by the query</DL></DD></DL><HR><A NAME="getResponseCount()"><!-- --></A><H3>getResponseCount</H3><PRE>public int <B>getResponseCount</B>()</PRE><DL><DD>Get the reponse count<P><DD><DL><DT><B>Returns:</B><DD>int count</DL></DD></DL><HR><A NAME="getResponses()"><!-- --></A><H3>getResponses</H3><PRE>public java.util.Enumeration <B>getResponses</B>()</PRE><DL><DD>returns the response(s)<P><DD><DL><DT><B>Returns:</B><DD>Enumeration of String responses</DL></DD></DL><HR><A NAME="setAdvertisements(java.util.Vector)"><!-- --></A><H3>setAdvertisements</H3><PRE>public void <B>setAdvertisements</B>(java.util.Vector responses)</PRE><DL><DD>set the responses to the query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>responses</CODE> - the responses for this 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> - int representing the type</DL></DD></DL><HR><A NAME="setExpirations(java.util.Vector)"><!-- --></A><H3>setExpirations</H3><PRE>public void <B>setExpirations</B>(java.util.Vector expirations)</PRE><DL><DD>set the expirations for this query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>expirations</CODE> - the expirations for this query</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 peer advertisement<P><DD><DL><DT><B>Parameters:</B><DD><CODE>peer</CODE> - </DL></DD></DL><HR><A NAME="setQueryAttr(java.lang.String)"><!-- --></A><H3>setQueryAttr</H3><PRE>public void <B>setQueryAttr</B>(java.lang.String attr)</PRE><DL><DD>set the attribute used by the query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - </DL></DD></DL><HR><A NAME="setQueryValue(java.lang.String)"><!-- --></A><H3>setQueryValue</H3><PRE>public void <B>setQueryValue</B>(java.lang.String value)</PRE><DL><DD>set the value used by the query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - </DL></DD></DL><HR><A NAME="setResponseCount(int)"><!-- --></A><H3>setResponseCount</H3><PRE>public void <B>setResponseCount</B>(int count)</PRE><DL><DD>set the response count in this message<P><DD><DL><DT><B>Parameters:</B><DD><CODE>count</CODE> - number of response in this message</DL></DD></DL><HR><A NAME="setResponses(java.util.Vector)"><!-- --></A><H3>setResponses</H3><PRE>public void <B>setResponses</B>(java.util.Vector responses)</PRE><DL><DD>set the responses to the query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>responses</CODE> - </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:ResolverResponse"</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/DiscoveryResponseMsg.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/DiscoveryQueryMsg.html" title="class in net.jxta.protocol"><B>PREV CLASS</B></A> <A HREF="../../../net/jxta/protocol/LimitedRangeRdvMessage.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="DiscoveryResponseMsg.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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 + -