📄 resolverresponsemsg.html
字号:
</TR></TABLE><A NAME="queryid"><!-- --></A><H3>queryid</H3><PRE>public int <B>queryid</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="ResolverResponseMsg()"><!-- --></A><H3>ResolverResponseMsg</H3><PRE>public <B>ResolverResponseMsg</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>StructuredDocument 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 representation requested for that document<DT><B>Returns:</B><DD>Document document representing the advertisement</DL></DD></DL><HR><A NAME="setSrcPeerRoute(net.jxta.protocol.RouteAdvertisement)"><!-- --></A><H3>setSrcPeerRoute</H3><PRE>public abstract void <B>setSrcPeerRoute</B>(<A HREF="../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A> route)</PRE><DL><DD>Set optional route information as part of the response. This information is just attached to the response and is ONLY used by the resolver service. This information will not be sent as part of the response msg and is not part of the resolver response wire format protocol.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>route</CODE> - RouteAdvertisement to send the response</DL></DD></DL><HR><A NAME="getSrcPeerRoute()"><!-- --></A><H3>getSrcPeerRoute</H3><PRE>public abstract <A HREF="../../../net/jxta/protocol/RouteAdvertisement.html" title="class in net.jxta.protocol">RouteAdvertisement</A> <B>getSrcPeerRoute</B>()</PRE><DL><DD>Get optional route information that may be attached to the response. This information is just attached to the response and is only used internally by the resolver service. This information will not be sent as part of the response msg and is not part of the resolver response wire format.<P><DD><DL><DT><B>Returns:</B><DD>RouteAdvertisement to send the response</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="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="getResponse()"><!-- --></A><H3>getResponse</H3><PRE>public java.lang.String <B>getResponse</B>()</PRE><DL><DD>returns the response body for this message.<P><DD><DL><DT><B>Returns:</B><DD>the response body represented as a string.</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 for this reponse.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cred</CODE> - string 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> - string handlername</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 to which this message is a response.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the query id for this response.</DL></DD></DL><HR><A NAME="setResponse(java.lang.String)"><!-- --></A><H3>setResponse</H3><PRE>public void <B>setResponse</B>(java.lang.String response)</PRE><DL><DD>Set the reponse body for this message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>response</CODE> - response body as a string.</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 type of the advertisement</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/ResolverResponseMsg.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/ResolverQueryMsg.html" title="class in net.jxta.protocol"><B>PREV CLASS</B></A> <A HREF="../../../net/jxta/protocol/ResolverSrdiMsg.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="ResolverResponseMsg.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 + -