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

📄 catalogexchangeresponse.html

📁 基于jxta的文件共享和聊天系统源代码,下载下来分析吧
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<DD>The catalog which is transported by response<P><DL></DL></DL><HR><A NAME="dateLastUpdate"><!-- --></A><H3>dateLastUpdate</H3><PRE>private java.util.Date <B>dateLastUpdate</B></PRE><DL><DD>The download date of the catalog<P><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 last update of the catalog<P><DL></DL></DL><HR><A NAME="catalogName"><!-- --></A><H3>catalogName</H3><PRE>private java.lang.String <B>catalogName</B></PRE><DL><DD>The catalog URL<P><DL></DL></DL><HR><A NAME="got"><!-- --></A><H3>got</H3><PRE>private java.lang.String <B>got</B></PRE><DL><DD>catalog name, identifies the catalog<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="CatalogExchangeResponse(java.lang.String, java.lang.String, java.net.URL, long, long, org.w3c.dom.Document)"><!-- --></A><H3>CatalogExchangeResponse</H3><PRE>public <B>CatalogExchangeResponse</B>(java.lang.String&nbsp;g,                               java.lang.String&nbsp;cn,                               java.net.URL&nbsp;curl,                               long&nbsp;dd,                               long&nbsp;dlu,                               org.w3c.dom.Document&nbsp;cat)</PRE><DL><DD>Used in case which the peer send the catalog (newer,true)<P><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - got value, represents the status of the responsed catalog<DD><CODE>cn</CODE> - name of the catalog to send<DD><CODE>curl</CODE> - Url of the catalog<DD><CODE>dd</CODE> - download date of the catalog<DD><CODE>dlu</CODE> - date of last update<DD><CODE>cat</CODE> - catalog to send</DL></DL><HR><A NAME="CatalogExchangeResponse(java.lang.String, java.lang.String, java.net.URL, long)"><!-- --></A><H3>CatalogExchangeResponse</H3><PRE>public <B>CatalogExchangeResponse</B>(java.lang.String&nbsp;g,                               java.lang.String&nbsp;cn,                               java.net.URL&nbsp;curl,                               long&nbsp;dlu)</PRE><DL><DD>Used in case which the query peer and the response peer has the same catalog  or in case which the sender has got a older version(equal,older)<P><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - got value, represents the status of the responsed catalog<DD><CODE>cn</CODE> - name of the catalog to send<DD><CODE>curl</CODE> - Url of the catalog<DD><CODE>dlu</CODE> - date of last update</DL></DL><HR><A NAME="CatalogExchangeResponse(java.lang.String, java.lang.String, java.net.URL)"><!-- --></A><H3>CatalogExchangeResponse</H3><PRE>public <B>CatalogExchangeResponse</B>(java.lang.String&nbsp;g,                               java.lang.String&nbsp;cn,                               java.net.URL&nbsp;curl)</PRE><DL><DD>Used in case which the peer hasn't the catalog (false)<P><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - got value, represents the status of the responsed catalog<DD><CODE>cn</CODE> - name of the catalog to send<DD><CODE>curl</CODE> - Url of the catalog</DL></DL><HR><A NAME="CatalogExchangeResponse(java.io.InputStream)"><!-- --></A><H3>CatalogExchangeResponse</H3><PRE>public <B>CatalogExchangeResponse</B>(java.io.InputStream&nbsp;stream)</PRE><DL><DD>Needed for the peer who receive the response to easily extract info from response.<P><DL><DT><B>Parameters:</B><DD><CODE>stream</CODE> - is the response 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="getCatalog()"><!-- --></A><H3>getCatalog</H3><PRE>public org.w3c.dom.Document <B>getCatalog</B>()</PRE><DL><DD>Returns the catalog transported by the response<P><DD><DL></DL></DD></DL><HR><A NAME="getDateDownload()"><!-- --></A><H3>getDateDownload</H3><PRE>public long <B>getDateDownload</B>()</PRE><DL><DD>Returns the download date of the transported catalog<P><DD><DL></DL></DD></DL><HR><A NAME="getDateLastUpdate()"><!-- --></A><H3>getDateLastUpdate</H3><PRE>public long <B>getDateLastUpdate</B>()</PRE><DL><DD>Returns the last update date of the transported catalog<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 transported 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>Returns the name of the transported catalog<P><DD><DL></DL></DD></DL><HR><A NAME="getGot()"><!-- --></A><H3>getGot</H3><PRE>public java.lang.String <B>getGot</B>()</PRE><DL><DD>Returns the got status of the transported catalog  can be false, newer, older,equal,true<P><DD><DL></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&nbsp;asMimeType)</PRE><DL><DD>Method that creates and return the xml document which represents the response.<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="jxtaDocToDom(net.jxta.document.Element)"><!-- --></A><H3>jxtaDocToDom</H3><PRE>private org.w3c.dom.Document <B>jxtaDocToDom</B>(net.jxta.document.Element&nbsp;c)</PRE><DL><DD>Extracts the catalog from response to a xml dom tree<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - element that contains the catalog</DL></DD></DL><HR><A NAME="catalogItem(net.jxta.document.Element, org.w3c.dom.Document, org.w3c.dom.Element)"><!-- --></A><H3>catalogItem</H3><PRE>private void <B>catalogItem</B>(net.jxta.document.Element&nbsp;ci,                         org.w3c.dom.Document&nbsp;r,                         org.w3c.dom.Element&nbsp;e)</PRE><DL><DD>Extracts the catalog item to a xml dom tree<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ci</CODE> - catalog item element in jxta response<DD><CODE>r</CODE> - xml document<DD><CODE>e</CODE> - xml dom root element</DL></DD></DL><HR><A NAME="domToJxtaDocElements(org.w3c.dom.Document, net.jxta.document.StructuredDocument, net.jxta.document.Element)"><!-- --></A><H3>domToJxtaDocElements</H3><PRE>private void <B>domToJxtaDocElements</B>(org.w3c.dom.Document&nbsp;c,                                  net.jxta.document.StructuredDocument&nbsp;r,                                  net.jxta.document.Element&nbsp;rc)</PRE><DL><DD>Inserts the catalog from a xml dom tree to jxta response<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - catalog in xml dom format<DD><CODE>r</CODE> - xml response document<DD><CODE>rc</CODE> - element of jxta response that contains catalogs</DL></DD></DL><HR><A NAME="catalogItem(org.w3c.dom.Element, net.jxta.document.StructuredDocument, net.jxta.document.Element)"><!-- --></A><H3>catalogItem</H3><PRE>private void <B>catalogItem</B>(org.w3c.dom.Element&nbsp;ci,                         net.jxta.document.StructuredDocument&nbsp;r,                         net.jxta.document.Element&nbsp;e)</PRE><DL><DD>Extracts the catalog item to a xml dom tree<P><DD><DL><DT><B>Parameters:</B><DD><CODE>ci</CODE> - catalog item element in dom xml tree<DD><CODE>r</CODE> - jxta response document<DD><CODE>e</CODE> - jxta response root element</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 response 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 response.</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="class-use/CatalogExchangeResponse.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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-files/index-1.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../catalog_exchange/CatalogExchangeQuery.html" title="class in catalog_exchange"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../catalog_exchange/CatalogExchangeService.html" title="interface in catalog_exchange"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../index.html?catalog_exchange/CatalogExchangeResponse.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CatalogExchangeResponse.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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></BODY></HTML>

⌨️ 快捷键说明

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