📄 piperesolver.html
字号:
</pre></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#processResponse(net.jxta.protocol.ResolverResponseMsg)">processResponse</A></B>(<A HREF="../../../../net/jxta/protocol/ResolverResponseMsg.html" title="class in net.jxta.protocol">ResolverResponseMsg</A> response)</CODE><BR> Called when messages are received by the ResolverService it calls back this method to deal with received responses</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#processResponse(net.jxta.protocol.ResolverResponseMsg, net.jxta.endpoint.EndpointAddress)">processResponse</A></B>(<A HREF="../../../../net/jxta/protocol/ResolverResponseMsg.html" title="class in net.jxta.protocol">ResolverResponseMsg</A> response, <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> srcAddr)</CODE><BR> Called when messages are received by the ResolverService it calls back this method to deal with received responses</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#processSrdi(net.jxta.protocol.ResolverSrdiMsg)">processSrdi</A></B>(<A HREF="../../../../net/jxta/protocol/ResolverSrdiMsg.html" title="class in net.jxta.protocol">ResolverSrdiMsg</A> message)</CODE><BR> Process the SrdiMessage message, returns true if the message was processed properly</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#pushEntries(boolean)">pushEntries</A></B>(boolean all)</CODE><BR> Pushe SRDI entries.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#pushSrdi(net.jxta.pipe.InputPipe, boolean)">pushSrdi</A></B>(<A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A> ip, boolean adding)</CODE><BR> Push SRDI entry for the specified pipe</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#register(net.jxta.pipe.InputPipe)">register</A></B>(<A HREF="../../../../net/jxta/pipe/InputPipe.html" title="interface in net.jxta.pipe">InputPipe</A> ip)</CODE><BR> Register that this peer is an InputPipe for the specified Pipe ID.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) <A HREF="../../../../net/jxta/impl/pipe/PipeResolver.Listener.html" title="interface in net.jxta.impl.pipe">PipeResolver.Listener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#removeListener(net.jxta.pipe.PipeID, int)">removeListener</A></B>(<A HREF="../../../../net/jxta/pipe/PipeID.html" title="class in net.jxta.pipe">PipeID</A> pipeID, int queryID)</CODE><BR> Remove a pipe resolver listener</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#sendPipeQuery(net.jxta.protocol.PipeAdvertisement, java.util.Set, int)">sendPipeQuery</A></B>(<A HREF="../../../../net/jxta/protocol/PipeAdvertisement.html" title="class in net.jxta.protocol">PipeAdvertisement</A> adv, java.util.Set acceptablePeers, int queryID)</CODE><BR> Send a request to find an input pipe</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>(package private) void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/pipe/PipeResolver.html#stop()">stop</A></B>()</CODE><BR> unregisters the resolver handler</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="ANYQUERY"><!-- --></A><H3>ANYQUERY</H3><PRE>static final int <B>ANYQUERY</B></PRE><DL><DD>Constant for pipe event listeners to signify any query id.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.pipe.PipeResolver.ANYQUERY">Constant Field Values</A></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="PipeResolver(net.jxta.peergroup.PeerGroup)"><!-- --></A><H3>PipeResolver</H3><PRE><B>PipeResolver</B>(<A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup">PeerGroup</A> g)</PRE><DL><DD>Constructor for the PipeResolver object<P><DT><B>Parameters:</B><DD><CODE>g</CODE> - group for which this PipeResolver operates in</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="getNextQueryID()"><!-- --></A><H3>getNextQueryID</H3><PRE>static int <B>getNextQueryID</B>()</PRE><DL><DD>return the next query id.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the next eligable query id.</DL></DD></DL><HR><A NAME="processQuery(net.jxta.protocol.ResolverQueryMsg)"><!-- --></A><H3>processQuery</H3><PRE>public int <B>processQuery</B>(<A HREF="../../../../net/jxta/protocol/ResolverQueryMsg.html" title="class in net.jxta.protocol">ResolverQueryMsg</A> query)</PRE><DL><DD>Process the resolver query, and generate response it is the responsibilty of the handler to send the response <p/><pre> result = processIncommingQuery(query); if (result != null) { resolver.sendResponse(query.getSrc(), response); return ResolverService.OK; } else return ResolverService.Repropagate; </pre><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/resolver/QueryHandler.html#processQuery(net.jxta.protocol.ResolverQueryMsg)">processQuery</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - ResolverQueryMsg query<DT><B>Returns:</B><DD>int status, <A HREF="../../../../net/jxta/resolver/ResolverService.html#OK"><CODE>OK</CODE></A> success, <A HREF="../../../../net/jxta/resolver/ResolverService.html#Repropagate"><CODE>Repropagate</CODE></A> to indicate a re-propagation is needed</DL></DD></DL><HR><A NAME="processQuery(net.jxta.protocol.ResolverQueryMsg, net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>processQuery</H3><PRE>public int <B>processQuery</B>(<A HREF="../../../../net/jxta/protocol/ResolverQueryMsg.html" title="class in net.jxta.protocol">ResolverQueryMsg</A> query, <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> srcAddr)</PRE><DL><DD>Process the resolver query, and generate response it is the responsibilty of the handler to send the response <p/><pre> result = processIncommingQuery(query); if (result != null) { resolver.sendResponse(query.getSrc(), response); return resolver.OK; } else return resolver.Repropagate; </pre><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/impl/resolver/InternalQueryHandler.html#processQuery(net.jxta.protocol.ResolverQueryMsg, net.jxta.endpoint.EndpointAddress)">processQuery</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/impl/resolver/InternalQueryHandler.html" title="interface in net.jxta.impl.resolver">InternalQueryHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>query</CODE> - ResolverQueryMsg query<DT><B>Returns:</B><DD>int status, <A HREF="../../../../net/jxta/resolver/ResolverService.html#OK"><CODE>OK</CODE></A> success, <A HREF="../../../../net/jxta/resolver/ResolverService.html#Repropagate"><CODE>Repropagate</CODE></A> to indicate a re-propagation is needed</DL></DD></DL><HR><A NAME="processResponse(net.jxta.protocol.ResolverResponseMsg)"><!-- --></A><H3>processResponse</H3><PRE>public void <B>processResponse</B>(<A HREF="../../../../net/jxta/protocol/ResolverResponseMsg.html" title="class in net.jxta.protocol">ResolverResponseMsg</A> response)</PRE><DL><DD>Called when messages are received by the ResolverService it calls back this method to deal with received responses<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/resolver/QueryHandler.html#processResponse(net.jxta.protocol.ResolverResponseMsg)">processResponse</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>response</CODE> - ResolverQueryMsg reponse</DL></DD></DL><HR><A NAME="processResponse(net.jxta.protocol.ResolverResponseMsg, net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>processResponse</H3><PRE>public void <B>processResponse</B>(<A HREF="../../../../net/jxta/protocol/ResolverResponseMsg.html" title="class in net.jxta.protocol">ResolverResponseMsg</A> response, <A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> srcAddr)</PRE><DL><DD>Called when messages are received by the ResolverService it calls back this method to deal with received responses<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/impl/resolver/InternalQueryHandler.html#processResponse(net.jxta.protocol.ResolverResponseMsg, net.jxta.endpoint.EndpointAddress)">processResponse</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/impl/resolver/InternalQueryHandler.html" title="interface in net.jxta.impl.resolver">InternalQueryHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>response</CODE> - ResolverQueryMsg reponse</DL></DD></DL><HR><A NAME="processSrdi(net.jxta.protocol.ResolverSrdiMsg)"><!-- --></A><H3>processSrdi</H3><PRE>public boolean <B>processSrdi</B>(<A HREF="../../../../net/jxta/protocol/ResolverSrdiMsg.html" title="class in net.jxta.protocol">ResolverSrdiMsg</A> message)</PRE><DL><DD>Process the SrdiMessage message, returns true if the message was processed properly<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/resolver/SrdiHandler.html#processSrdi(net.jxta.protocol.ResolverSrdiMsg)">processSrdi</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/resolver/SrdiHandler.html" title="interface in net.jxta.resolver">SrdiHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - Description of the Parameter<DT><B>Returns:</B><DD>true if the message was processed properly</DL></DD></DL><HR><A NAME="messageSendFailed(net.jxta.peer.PeerID, net.jxta.endpoint.OutgoingMessageEvent)"><!-- --></A><H3>messageSendFailed</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -