⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 endpointservice.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elementName</CODE> - the address the listener was registered for<DD><CODE>listener</CODE> - the listener that was registered<DD><CODE>incoming</CODE> - whether it was registered for incoming or outgoing                 messages.</DL></DD></DL><HR><A NAME="addIncomingMessageFilterListener(net.jxta.endpoint.MessageFilterListener, java.lang.String, java.lang.String)"><!-- --></A><H3>addIncomingMessageFilterListener</H3><PRE>public void <B>addIncomingMessageFilterListener</B>(<A HREF="../../../net/jxta/endpoint/MessageFilterListener.html" title="interface in net.jxta.endpoint">MessageFilterListener</A>&nbsp;listener,                                             java.lang.String&nbsp;namespace,                                             java.lang.String&nbsp;name)</PRE><DL><DD>Registers a message filter listener. Each message will be tested against  the list of filters as part of its sending or receiving.  <p/>The listener is invoked for a message when:  <ul>  <li>The message contains an element which matches exactly the  values specified by namespace and name.</li>  <li>The message contains an element who's namespace value matches  exactly the specified namespace value and the specified name is null.</li>  <li>The message contains an element who's names value matches exactly  the specified name value and the specified namespace is null.</li>  <li>The specified name value and the specified namespace are both null.</li>  </ul><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The filter which will be called.<DD><CODE>namespace</CODE> - only messages containing elements of this namespace  which also match the 'name' parameter will be processed. null may be  use to specify all namespaces.<DD><CODE>name</CODE> - only messages containing elements of this name which also  match the 'namespace' parameter will be processed. null may be use to  specify all names.</DL></DD></DL><HR><A NAME="addOutgoingMessageFilterListener(net.jxta.endpoint.MessageFilterListener, java.lang.String, java.lang.String)"><!-- --></A><H3>addOutgoingMessageFilterListener</H3><PRE>public void <B>addOutgoingMessageFilterListener</B>(<A HREF="../../../net/jxta/endpoint/MessageFilterListener.html" title="interface in net.jxta.endpoint">MessageFilterListener</A>&nbsp;listener,                                             java.lang.String&nbsp;namespace,                                             java.lang.String&nbsp;name)</PRE><DL><DD>Registers a message filter listener. Each message will be tested against  the list of filters as part of its sending or receiving.  <p/>The listener is invoked for a message when:  <ul>  <li>The message contains an element which matches exactly the  values specified by namespace and name.</li>  <li>The message contains an element who's namespace value matches  exactly the specified namespace value and the specified name is null.</li>  <li>The message contains an element who's names value matches exactly  the specified name value and the specified namespace is null.</li>  <li>The specified name value and the specified namespace are both null.</li>  </ul><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The filter which will be called.<DD><CODE>namespace</CODE> - only messages containing elements of this namespace  which also match the 'name' parameter will be processed. null may be  use to specify all namespaces.<DD><CODE>name</CODE> - only messages containing elements of this name which also  match the 'namespace' parameter will be processed. null may be use to  specify all names.</DL></DD></DL><HR><A NAME="removeIncomingMessageFilterListener(net.jxta.endpoint.MessageFilterListener, java.lang.String, java.lang.String)"><!-- --></A><H3>removeIncomingMessageFilterListener</H3><PRE>public <A HREF="../../../net/jxta/endpoint/MessageFilterListener.html" title="interface in net.jxta.endpoint">MessageFilterListener</A> <B>removeIncomingMessageFilterListener</B>(<A HREF="../../../net/jxta/endpoint/MessageFilterListener.html" title="interface in net.jxta.endpoint">MessageFilterListener</A>&nbsp;listener,                                                                 java.lang.String&nbsp;namespace,                                                                 java.lang.String&nbsp;name)</PRE><DL><DD>Removes the given listener previously registered under the given element name<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener that was registered</DL></DD></DL><HR><A NAME="removeOutgoingMessageFilterListener(net.jxta.endpoint.MessageFilterListener, java.lang.String, java.lang.String)"><!-- --></A><H3>removeOutgoingMessageFilterListener</H3><PRE>public <A HREF="../../../net/jxta/endpoint/MessageFilterListener.html" title="interface in net.jxta.endpoint">MessageFilterListener</A> <B>removeOutgoingMessageFilterListener</B>(<A HREF="../../../net/jxta/endpoint/MessageFilterListener.html" title="interface in net.jxta.endpoint">MessageFilterListener</A>&nbsp;listener,                                                                 java.lang.String&nbsp;namespace,                                                                 java.lang.String&nbsp;name)</PRE><DL><DD>Removes the given listener previously registered under the given element name<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener that was registered</DL></DD></DL><HR><A NAME="demux(net.jxta.endpoint.Message)"><!-- --></A><H3>demux</H3><PRE>public void <B>demux</B>(<A HREF="../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg)</PRE><DL><DD>Delivers the provided message to the correct listener as specified by  the message's destination address.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - The message to be delivered.</DL></DD></DL><HR><A NAME="addMessageTransport(net.jxta.endpoint.MessageTransport)"><!-- --></A><H3>addMessageTransport</H3><PRE>public boolean <B>addMessageTransport</B>(<A HREF="../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A>&nbsp;transpt)</PRE><DL><DD>Adds the specified MessageTransport to this endpoint. A MessageTransport may only be added if there are no other equivalent MessageTransports available (as determined by <CODE>equals()</CODE>). <p/>The MessageTransport becomes usable by the endpoint service to send unicast messages and optionaly propagation and ping messages if it is a <A HREF="../../../net/jxta/endpoint/MessageSender.html" title="interface in net.jxta.endpoint"><CODE>MessageSender</CODE></A>. The endpoint service becomes usable by this MessageTransport to handle incoming messages if it is a <A HREF="../../../net/jxta/endpoint/MessageReceiver.html" title="interface in net.jxta.endpoint"><CODE>MessageReceiver</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>transpt</CODE> - the MessageTransport to be installed.<DT><B>Returns:</B><DD>true if the MessageTransport was installed otherwise false.</DL></DD></DL><HR><A NAME="removeMessageTransport(net.jxta.endpoint.MessageTransport)"><!-- --></A><H3>removeMessageTransport</H3><PRE>public boolean <B>removeMessageTransport</B>(<A HREF="../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A>&nbsp;transpt)</PRE><DL><DD>Removes the given MessageTransport protocol from this endpoint service. <p/>Transports remove themselves from the list when stopped. This method is normally only called from the stoppApp method of the transport. To cleanly remove a transport, call the transport's <A HREF="../../../net/jxta/platform/Module.html#stopApp()"><CODE>stopApp()</CODE></A> and allow it to call this method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>transpt</CODE> - the MessageTransport to be removed.<DT><B>Returns:</B><DD>boolean true if the transport was removed, otherwise false.</DL></DD></DL><HR><A NAME="getAllMessageTransports()"><!-- --></A><H3>getAllMessageTransports</H3><PRE>public java.util.Iterator <B>getAllMessageTransports</B>()</PRE><DL><DD>Get an iterator of the MessageTransports available to this  EndpointService.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the iterator of all message transports.</DL></DD></DL><HR><A NAME="getMessageTransport(java.lang.String)"><!-- --></A><H3>getMessageTransport</H3><PRE>public <A HREF="../../../net/jxta/endpoint/MessageTransport.html" title="interface in net.jxta.endpoint">MessageTransport</A> <B>getMessageTransport</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Get a MessageTransport by name<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>MessageTransport associated with that name</DL></DD></DL><HR><A NAME="getMessengerEventListener()"><!-- --></A><H3>getMessengerEventListener</H3><PRE>public <A HREF="../../../net/jxta/endpoint/MessengerEventListener.html" title="interface in net.jxta.endpoint">MessengerEventListener</A> <B>getMessengerEventListener</B>()</PRE><DL><DD>Get the Messenger event listener<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>MessengerEventListener</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/EndpointService.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../../net/jxta/endpoint/EndpointMessenger.html" title="interface in net.jxta.endpoint"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/jxta/endpoint/MessageFilterListener.html" title="interface in net.jxta.endpoint"><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>  &nbsp;&nbsp;<A HREF="EndpointService.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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 + -