?? resolverquerymsg.html
字號(hào):
<HR><A NAME="queryid"><!-- --></A><H3>queryid</H3><PRE>protected int <B>queryid</B></PRE><DL><DD>Query ID of this query<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="ResolverQueryMsg()"><!-- --></A><H3>ResolverQueryMsg</H3><PRE>public <B>ResolverQueryMsg</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="getCredential()"><!-- --></A><H3>getCredential</H3><PRE>public <A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> <B>getCredential</B>()</PRE><DL><DD>returns the credential<P><DD><DL><DT><B>Returns:</B><DD>String credential</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-type requested representation for the returned document<DT><B>Returns:</B><DD>Document document representing the advertisement</DL></DD></DL><HR><A NAME="getHandlerName()"><!-- --></A><H3>getHandlerName</H3><PRE>public java.lang.String <B>getHandlerName</B>()</PRE><DL><DD>returns the handlername<P><DD><DL><DT><B>Returns:</B><DD>String handlername name</DL></DD></DL><HR><A NAME="getHopCount()"><!-- --></A><H3>getHopCount</H3><PRE>public int <B>getHopCount</B>()</PRE><DL><DD>returns the hop count<P><DD><DL><DT><B>Returns:</B><DD>int hop count</DL></DD></DL><HR><A NAME="getQuery()"><!-- --></A><H3>getQuery</H3><PRE>public java.lang.String <B>getQuery</B>()</PRE><DL><DD>returns the query<P><DD><DL><DT><B>Returns:</B><DD>String value of the query</DL></DD></DL><HR><A NAME="getQueryId()"><!-- --></A><H3>getQueryId</H3><PRE>public int <B>getQueryId</B>()</PRE><DL><DD>returns queryid value<P><DD><DL><DT><B>Returns:</B><DD>int queryid value</DL></DD></DL><HR><A NAME="getSrc()"><!-- --></A><H3>getSrc</H3><PRE>public java.lang.String <B>getSrc</B>()</PRE><DL><DD>Returns the source of the query<P><DD><DL><DT><B>Returns:</B><DD>String the peerid of the source of the query</DL></DD></DL><HR><A NAME="getSrcPeerRoute()"><!-- --></A><H3>getSrcPeerRoute</H3><PRE>public <A HREF="../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A> <B>getSrcPeerRoute</B>()</PRE><DL><DD>Returns the source route of the query<P><DD><DL><DT><B>Returns:</B><DD>RouteAdvertisement route to the issuer of the query</DL></DD></DL><HR><A NAME="incrementHopCount()"><!-- --></A><H3>incrementHopCount</H3><PRE>public void <B>incrementHopCount</B>()</PRE><DL><DD>increment hop count<P><DD><DL></DL></DD></DL><HR><A NAME="setCredential(net.jxta.document.StructuredDocument)"><!-- --></A><H3>setCredential</H3><PRE>public void <B>setCredential</B>(<A HREF="../../../net/jxta/document/StructuredDocument.html" title="interface in net.jxta.document">StructuredDocument</A> cred)</PRE><DL><DD>set the credential<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cred</CODE> - string representing credential</DL></DD></DL><HR><A NAME="setHandlerName(java.lang.String)"><!-- --></A><H3>setHandlerName</H3><PRE>public void <B>setHandlerName</B>(java.lang.String name)</PRE><DL><DD>set the handlername<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - handler name</DL></DD></DL><HR><A NAME="setQuery(java.lang.String)"><!-- --></A><H3>setQuery</H3><PRE>public void <B>setQuery</B>(java.lang.String Query)</PRE><DL><DD>set the Query string<P><DD><DL><DT><B>Parameters:</B><DD><CODE>Query</CODE> - string representing the query</DL></DD></DL><HR><A NAME="setQueryId(int)"><!-- --></A><H3>setQueryId</H3><PRE>public void <B>setQueryId</B>(int id)</PRE><DL><DD>set the query id. Each query has a unique id.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - int id</DL></DD></DL><HR><A NAME="setSrcPeerRoute(net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>setSrcPeerRoute</H3><PRE>public void <B>setSrcPeerRoute</B>(<A HREF="../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A> route)</PRE><DL><DD>set the source route of the query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>route</CODE> - route advertisement of the source peer</DL></DD></DL><HR><A NAME="setSrc(java.lang.String)"><!-- --></A><H3>setSrc</H3><PRE>public void <B>setSrc</B>(java.lang.String src)</PRE><DL><DD>Set the source of the query<P><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - is a String containing the peerid of the source</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:ResolverQuery"</DL></DD></DL><HR><A NAME="makeResponse()"><!-- --></A><H3>makeResponse</H3><PRE>public abstract <A HREF="../../../net/jxta/protocol/ResolverResponseMsg.html" title="class in net.jxta.protocol">ResolverResponseMsg</A> <B>makeResponse</B>()</PRE><DL><DD>Create a ResolverResponse from a ResolverQuery message. This method takes advantage of any internal information available in an incoming Resolver query to build a resolver response for that query. For instance, optional route information which may be available in the query will be used to bypass the route resolution to send the response. WARNING: A side effect of this call is that the following fields are transfered from the query to the response: - HandlerName - QueryId<P><DD><DL><DT><B>Returns:</B><DD>ResolverResponseMsg resolverResponse built from the resolverQuery msg</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/ResolverQueryMsg.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/RdvAdvertisement.html" title="class in net.jxta.protocol"><B>PREV CLASS</B></A> <A HREF="../../../net/jxta/protocol/ResolverResponseMsg.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="ResolverQueryMsg.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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -