📄 endpointlistener.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceInterface.html" title="class in net.jxta.impl.endpoint">EndpointServiceInterface</A></B></CODE><BR> The EndpointService Service provides a frontend API and enviroment to all endpoint protocols.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/QuotaIncomingMessageListener.html" title="class in net.jxta.impl.endpoint">QuotaIncomingMessageListener</A></B></CODE><BR> </TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../net/jxta/impl/endpoint/package-summary.html">net.jxta.impl.endpoint</A> that return <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></CODE></FONT></TD><TD><CODE><B>QuotaIncomingMessageListener.</B><B><A HREF="../../../../net/jxta/impl/endpoint/QuotaIncomingMessageListener.html#getListener()">getListener</A></B>()</CODE><BR> Gets the listener attribute of the QuotaIncomingMessageListener object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></CODE></FONT></TD><TD><CODE><B>EndpointServiceImpl.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceImpl.html#removeIncomingMessageListener(java.lang.String, java.lang.String)">removeIncomingMessageListener</A></B>(java.lang.String serviceName, java.lang.String serviceParam)</CODE><BR> Remove the listener for the specified address.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></CODE></FONT></TD><TD><CODE><B>EndpointServiceInterface.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceInterface.html#removeIncomingMessageListener(java.lang.String, java.lang.String)">removeIncomingMessageListener</A></B>(java.lang.String serviceName, java.lang.String serviceParam)</CODE><BR> Remove the listener for the specified address.</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../net/jxta/impl/endpoint/package-summary.html">net.jxta.impl.endpoint</A> with parameters of type <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></FONT></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>EndpointServiceImpl.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceImpl.html#addListener(java.lang.String, net.jxta.endpoint.EndpointListener)">addListener</A></B>(java.lang.String address, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Registers an incoming messages listener. <p/>Each incoming message addressed to the queue specified by the given address will be passed to the given listener. The address is usually formed by concatenating the the name of the invoking service and a parameter unique to that service accross all groups (the group ID is normally included for that purpose). <p/>For a message to match this address, it must have been sent through an EndpointMessenger obtained by providing an EndpointAddress constructed with matching serviceName and serviceParam (see newEndpointAddress and getMessenger), or by invoking propagate with matching serviceName and serviceParam. <p/>If a listener is already registered with the given address, an IllegalArgumentException is thrown.</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>EndpointServiceImpl.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceImpl.html#removeListener(java.lang.String, net.jxta.endpoint.EndpointListener)">removeListener</A></B>(java.lang.String address, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Removes the given listener previously registered under the given address.</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>EndpointServiceImpl.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceImpl.html#addIncomingMessageListener(net.jxta.endpoint.EndpointListener, java.lang.String, java.lang.String)">addIncomingMessageListener</A></B>(<A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener, java.lang.String serviceName, java.lang.String serviceParam)</CODE><BR> Add a listener for the specified address. <p/>A single registered listener will be called for incoming messages when (in order of preference) : <ol> <li>The service name and service parameter match exactly to the service name and service parameter specified in the destination address of the message.</li> <li>The service name matches exactly the service name from the message destination address and service parameter is null.</li> </ol></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>EndpointServiceInterface.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceInterface.html#addListener(java.lang.String, net.jxta.endpoint.EndpointListener)">addListener</A></B>(java.lang.String address, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Registers an incoming messages listener. <p/>Each incoming message addressed to the queue specified by the given address will be passed to the given listener. The address is usually formed by concatenating the the name of the invoking service and a parameter unique to that service accross all groups (the group ID is normally included for that purpose). <p/>For a message to match this address, it must have been sent through an EndpointMessenger obtained by providing an EndpointAddress constructed with matching serviceName and serviceParam (see newEndpointAddress and getMessenger), or by invoking propagate with matching serviceName and serviceParam. <p/>If a listener is already registered with the given address, an IllegalArgumentException is thrown.</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>EndpointServiceInterface.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceInterface.html#removeListener(java.lang.String, net.jxta.endpoint.EndpointListener)">removeListener</A></B>(java.lang.String address, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Removes the given listener previously registered under the given address.</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>EndpointServiceInterface.</B><B><A HREF="../../../../net/jxta/impl/endpoint/EndpointServiceInterface.html#addIncomingMessageListener(net.jxta.endpoint.EndpointListener, java.lang.String, java.lang.String)">addIncomingMessageListener</A></B>(<A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener, java.lang.String serviceName, java.lang.String serviceParam)</CODE><BR> Add a listener for the specified address. <p/>A single registered listener will be called for incoming messages when (in order of preference) : <ol> <li>The service name and service parameter match exactly to the service name and service parameter specified in the destination address of the message.</li> <li>The service name matches exactly the service name from the message destination address and service parameter is null.</li> </ol></TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../../net/jxta/impl/endpoint/package-summary.html">net.jxta.impl.endpoint</A> with parameters of type <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/QuotaIncomingMessageListener.html#QuotaIncomingMessageListener(net.jxta.endpoint.EndpointListener)">QuotaIncomingMessageListener</A></B>(<A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Constructor for the QuotaIncomingMessageListener object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/QuotaIncomingMessageListener.html#QuotaIncomingMessageListener(java.lang.String, net.jxta.endpoint.EndpointListener)">QuotaIncomingMessageListener</A></B>(java.lang.String name, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener)</CODE><BR> Constructor for the QuotaIncomingMessageListener object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/QuotaIncomingMessageListener.html#QuotaIncomingMessageListener(java.lang.String, net.jxta.endpoint.EndpointListener, net.jxta.impl.endpoint.endpointMeter.InboundMeter)">QuotaIncomingMessageListener</A></B>(java.lang.String name, <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> listener, <A HREF="../../../../net/jxta/impl/endpoint/endpointMeter/InboundMeter.html" title="class in net.jxta.impl.endpoint.endpointMeter">InboundMeter</A> incomingMessageListenerMeter)</CODE><BR> Constructor for the QuotaIncomingMessageListener object</TD></TR></TABLE> <P><A NAME="net.jxta.impl.endpoint.cbjx"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> in <A HREF="../../../../net/jxta/impl/endpoint/cbjx/package-summary.html">net.jxta.impl.endpoint.cbjx</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Classes in <A HREF="../../../../net/jxta/impl/endpoint/cbjx/package-summary.html">net.jxta.impl.endpoint.cbjx</A> that implement <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/cbjx/CbJxTransport.html" title="class in net.jxta.impl.endpoint.cbjx">CbJxTransport</A></B></CODE><BR> A JXTA <A HREF="../../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint"><CODE>MessageTransport</CODE></A> implementation which which provides message verification by examining message signatures. </TD></TR></TABLE> <P><A NAME="net.jxta.impl.endpoint.relay"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> in <A HREF="../../../../net/jxta/impl/endpoint/relay/package-summary.html">net.jxta.impl.endpoint.relay</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Classes in <A HREF="../../../../net/jxta/impl/endpoint/relay/package-summary.html">net.jxta.impl.endpoint.relay</A> that implement <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/impl/endpoint/relay/RelayTransport.html" title="class in net.jxta.impl.endpoint.relay">RelayTransport</A></B></CODE><BR> The Relay Server supports the following commands: CONNECT - message contains PEERID, optional LEASE DISCONNECT - message contains PEERID. </TD></TR></TABLE> <P><A NAME="net.jxta.impl.endpoint.router"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../net/jxta/endpoint/EndpointListener.html" title="interface in net.jxta.endpoint">EndpointListener</A> in <A HREF="../../../../net/jxta/impl/endpoint/router/package-summary.html">net.jxta.impl.endpoint.router</A></FONT></TD></TR></TABLE> <P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -