📄 catalogexchangequery.html
字号:
<A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="dateLastUpdate"><!-- --></A><H3>dateLastUpdate</H3><PRE>private java.util.Date <B>dateLastUpdate</B></PRE><DL><DL></DL></DL><HR><A NAME="catalogUrl"><!-- --></A><H3>catalogUrl</H3><PRE>private java.net.URL <B>catalogUrl</B></PRE><DL><DD>The date of the last update of the owned catalog, if present<P><DL></DL></DL><HR><A NAME="catalogName"><!-- --></A><H3>catalogName</H3><PRE>private java.lang.String <B>catalogName</B></PRE><DL><DD>The url from which the catalog can be downloaded<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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="CatalogExchangeQuery()"><!-- --></A><H3>CatalogExchangeQuery</H3><PRE>public <B>CatalogExchangeQuery</B>()</PRE><DL><DD><B>Deprecated.</B> <I></I><P><DD>Empty constructor, doesn't do anything.<P></DL><HR><A NAME="CatalogExchangeQuery(java.lang.String, java.net.URL, long)"><!-- --></A><H3>CatalogExchangeQuery</H3><PRE>public <B>CatalogExchangeQuery</B>(java.lang.String cn, java.net.URL curl, long du)</PRE><DL><DD>Constructor needed if a peer has got the catalog and wants to check if any other peer has got a newer version.<P><DL><DT><B>Parameters:</B><DD><CODE>cn</CODE> - the name of the catalog<DD><CODE>curl</CODE> - the url which the catalog can be downloaded from<DD><CODE>du</CODE> - the date of the last update of local catalog, in long format(milliseconds)</DL></DL><HR><A NAME="CatalogExchangeQuery(java.lang.String, java.net.URL)"><!-- --></A><H3>CatalogExchangeQuery</H3><PRE>public <B>CatalogExchangeQuery</B>(java.lang.String cn, java.net.URL curl)</PRE><DL><DD>Constructor needed if a peer hasn't got the catalog and wants to download it from another peer.<P><DL><DT><B>Parameters:</B><DD><CODE>cn</CODE> - the name of the catalog<DD><CODE>curl</CODE> - the url which the catalog can be downloaded from</DL></DL><HR><A NAME="CatalogExchangeQuery(java.io.InputStream)"><!-- --></A><H3>CatalogExchangeQuery</H3><PRE>public <B>CatalogExchangeQuery</B>(java.io.InputStream stream)</PRE><DL><DD>Constructor needed for the peer who receive the query to easily extract info from query.<P><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - is the query xml document received</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="getDateUpdate()"><!-- --></A><H3>getDateUpdate</H3><PRE>public long <B>getDateUpdate</B>()</PRE><DL><DD>Returns the last update date of the catalog if the querying peer has got one.<P><DD><DL></DL></DD></DL><HR><A NAME="getCatalogUrl()"><!-- --></A><H3>getCatalogUrl</H3><PRE>public java.net.URL <B>getCatalogUrl</B>()</PRE><DL><DD>Returns the url of the catalog.<P><DD><DL></DL></DD></DL><HR><A NAME="getCatalogName()"><!-- --></A><H3>getCatalogName</H3><PRE>public java.lang.String <B>getCatalogName</B>()</PRE><DL><DD>Catalog Name getter<P><DD><DL><DT><B>Returns:</B><DD>Returns the name of the catalog.</DL></DD></DL><HR><A NAME="getDocument(net.jxta.document.MimeMediaType)"><!-- --></A><H3>getDocument</H3><PRE>public net.jxta.document.Document <B>getDocument</B>(net.jxta.document.MimeMediaType asMimeType)</PRE><DL><DD>Method that creates and return the xml document which represents the query.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>asMimeType</CODE> - MimeType of the output document.<DT><B>Returns:</B><DD>The query in xml document format.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Method that returns the xml query document as String.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>String rapresentation of the query.</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> </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/CatalogExchangeQuery.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-files/index-1.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../catalog_exchange/CatalogExchangeListener.html" title="interface in catalog_exchange"><B>PREV CLASS</B></A> <A HREF="../catalog_exchange/CatalogExchangeResponse.html" title="class in catalog_exchange"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html?catalog_exchange/CatalogExchangeQuery.html" target="_top"><B>FRAMES</B></A> <A HREF="CatalogExchangeQuery.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 + -