📄 resolverserviceimpl.html
字号:
<CODE> <A HREF="../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/resolver/ResolverServiceImpl.html#registerHandler(java.lang.String, net.jxta.resolver.QueryHandler)">registerHandler</A></B>(java.lang.String name, <A HREF="../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A> handler)</CODE><BR> Registers a given ResolveHandler, returns the previous handler registered under this name</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/resolver/SrdiHandler.html" title="interface in net.jxta.resolver">SrdiHandler</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/resolver/ResolverServiceImpl.html#registerSrdiHandler(java.lang.String, net.jxta.resolver.SrdiHandler)">registerSrdiHandler</A></B>(java.lang.String name, <A HREF="../../../../net/jxta/resolver/SrdiHandler.html" title="interface in net.jxta.resolver">SrdiHandler</A> handler)</CODE><BR> Registers a given SrdiHandler, returns the previous handler registered under this name</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/resolver/ResolverServiceImpl.html#removePendingDestination(net.jxta.endpoint.EndpointAddress)">removePendingDestination</A></B>(<A HREF="../../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> toRemove)</CODE><BR> </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/resolver/ResolverServiceImpl.html#sendQuery(java.lang.String, net.jxta.protocol.ResolverQueryMsg)">sendQuery</A></B>(java.lang.String rdvPeer, <A HREF="../../../../net/jxta/protocol/ResolverQueryMsg.html" title="class in net.jxta.protocol">ResolverQueryMsg</A> query)</CODE><BR> For Services that wish to implement a ResolverService they must implement this interface Sends query to the specified address. If address is null the query is propagated</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/resolver/ResolverServiceImpl.html#sendResponse(java.lang.String, net.jxta.protocol.ResolverResponseMsg)">sendResponse</A></B>(java.lang.String destPeer, <A HREF="../../../../net/jxta/protocol/ResolverResponseMsg.html" title="class in net.jxta.protocol">ResolverResponseMsg</A> response)</CODE><BR> send a response to a peer.</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/resolver/ResolverServiceImpl.html#sendSrdi(java.lang.String, net.jxta.protocol.ResolverSrdiMsg)">sendSrdi</A></B>(java.lang.String destPeer, <A HREF="../../../../net/jxta/protocol/ResolverSrdiMsg.html" title="class in net.jxta.protocol">ResolverSrdiMsg</A> srdi)</CODE><BR> send a srdi message to a peer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/resolver/ResolverServiceImpl.html#startApp(java.lang.String[])">startApp</A></B>(java.lang.String[] arg)</CODE><BR> Some Modules will wait for this method being invoked, before completing their initializatino to the point that they are fully functional. That is also the opportunity to supply arbitrary arguments (mostly to applications). <p/>If this module is a <A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup"><CODE>PeerGroup</CODE></A> service, it may be invoked several times depending on its return value. <p/>Note: the name of this method is historical and no-longer adequate.</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/resolver/ResolverServiceImpl.html#stopApp()">stopApp</A></B>()</CODE><BR> One can ask a Module to stop. The Module cannot be forced to comply, but in the future we might be able to deny it access to anything after some timeout. <p/>Note: the name of this method is no-longer adequate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/resolver/ResolverServiceImpl.html#unregisterHandler(java.lang.String)">unregisterHandler</A></B>(java.lang.String name)</CODE><BR> unregisters a given ResolveHandler, returns the previous handler registered under this name</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/resolver/SrdiHandler.html" title="interface in net.jxta.resolver">SrdiHandler</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/resolver/ResolverServiceImpl.html#unregisterSrdiHandler(java.lang.String)">unregisterSrdiHandler</A></B>(java.lang.String name)</CODE><BR> unregisters a given SrdiHandler, returns the previous handler registered under this name</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="outQueNameShort"><!-- --></A><H3>outQueNameShort</H3><PRE>public static final java.lang.String <B>outQueNameShort</B></PRE><DL><DD>Resolver query endpoint postfix<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.resolver.ResolverServiceImpl.outQueNameShort">Constant Field Values</A></DL></DL><HR><A NAME="inQueNameShort"><!-- --></A><H3>inQueNameShort</H3><PRE>public static final java.lang.String <B>inQueNameShort</B></PRE><DL><DD>Resolver response endpoint postfix<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.resolver.ResolverServiceImpl.inQueNameShort">Constant Field Values</A></DL></DL><HR><A NAME="srdiQueNameShort"><!-- --></A><H3>srdiQueNameShort</H3><PRE>public static final java.lang.String <B>srdiQueNameShort</B></PRE><DL><DD>Resolver srdi endpoint postfix<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.impl.resolver.ResolverServiceImpl.srdiQueNameShort">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="ResolverServiceImpl()"><!-- --></A><H3>ResolverServiceImpl</H3><PRE>public <B>ResolverServiceImpl</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="startApp(java.lang.String[])"><!-- --></A><H3>startApp</H3><PRE>public int <B>startApp</B>(java.lang.String[] arg)</PRE><DL><DD>Some Modules will wait for this method being invoked, before completing their initializatino to the point that they are fully functional. That is also the opportunity to supply arbitrary arguments (mostly to applications). <p/>If this module is a <A HREF="../../../../net/jxta/peergroup/PeerGroup.html" title="interface in net.jxta.peergroup"><CODE>PeerGroup</CODE></A> service, it may be invoked several times depending on its return value. <p/>Note: the name of this method is historical and no-longer adequate.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/platform/Module.html#startApp(java.lang.String[])">startApp</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>arg</CODE> - An array of Strings forming the parameters for this Module.<DT><B>Returns:</B><DD>int A status indication which may be one of <A HREF="../../../../net/jxta/platform/Module.html#START_OK"><CODE>Module.START_OK</CODE></A>, <A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_PROGRESS"><CODE>Module.START_AGAIN_PROGRESS</CODE></A>, <A HREF="../../../../net/jxta/platform/Module.html#START_AGAIN_STALLED"><CODE>Module.START_AGAIN_STALLED</CODE></A>, which indicates partial or complete success, or any other value (negative values are recommended for future compatibility), which indicates failure.</DL></DD></DL><HR><A NAME="stopApp()"><!-- --></A><H3>stopApp</H3><PRE>public void <B>stopApp</B>()</PRE><DL><DD>One can ask a Module to stop. The Module cannot be forced to comply, but in the future we might be able to deny it access to anything after some timeout. <p/>Note: the name of this method is no-longer adequate.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/platform/Module.html#stopApp()">stopApp</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/platform/Module.html" title="interface in net.jxta.platform">Module</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getInterface()"><!-- --></A><H3>getInterface</H3><PRE>public <A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A> <B>getInterface</B>()</PRE><DL><DD>Service objects are not manipulated directly to protect usage of the service. A Service interface is returned to access the service methods.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/service/Service.html#getInterface()">getInterface</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Service public interface of the service</DL></DD></DL><HR><A NAME="getImplAdvertisement()"><!-- --></A><H3>getImplAdvertisement</H3><PRE>public <A HREF="../../../../net/jxta/document/Advertisement.html" title="class in net.jxta.document">Advertisement</A> <B>getImplAdvertisement</B>()</PRE><DL><DD>Returns the advertisment for this service.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/service/Service.html#getImplAdvertisement()">getImplAdvertisement</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/service/Service.html" title="interface in net.jxta.service">Service</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>Advertisement the advertisement.</DL></DD></DL><HR><A NAME="registerHandler(java.lang.String, net.jxta.resolver.QueryHandler)"><!-- --></A><H3>registerHandler</H3><PRE>public <A HREF="../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A> <B>registerHandler</B>(java.lang.String name, <A HREF="../../../../net/jxta/resolver/QueryHandler.html" title="interface in net.jxta.resolver">QueryHandler</A> handler)</PRE><DL><DD>Registers a given ResolveHandler, returns the previous handler registered under this name<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../net/jxta/resolver/ResolverService.html#registerHandler(java.lang.String, net.jxta.resolver.QueryHandler)">registerHandler</A></CODE> in interface <CODE><A HREF="../../../../net/jxta/resolver/ResolverService.html" title="interface in net.jxta.resolver">ResolverService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name under which this handler is to be registered.<DD><CODE>handler</CODE> - The handler.<DT><B>Returns:</B><DD>The previous handler registered under this name</DL></DD></DL><HR><A NAME="unregisterHandler(java.lang.String)"><!-- --></A><H3>unregisterHandler</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -