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

📄 messagesender.html

📁 jxta的api库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getPublicAddress()"><!-- --></A><H3>getPublicAddress</H3><PRE>public <A HREF="../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A> <B>getPublicAddress</B>()</PRE><DL><DD>Returns the <A HREF="../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddress</CODE></A> which will be used as the source  address for all messages sent by this message sender. This is the  "prefered" address to which replies may be sent. This address is not  necessarily the best or only address by which the peer may be reached.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an EndpointAddress containing the public address for this message receiver.</DL></DD></DL><HR><A NAME="isConnectionOriented()"><!-- --></A><H3>isConnectionOriented</H3><PRE>public boolean <B>isConnectionOriented</B>()</PRE><DL><DD>Returns true if the endpoint protocol can establish connection to the remote host (like TCP).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the protocol is connection oriented.</DL></DD></DL><HR><A NAME="allowsRouting()"><!-- --></A><H3>allowsRouting</H3><PRE>public boolean <B>allowsRouting</B>()</PRE><DL><DD>Returns true if the endpoint protocol can be used by the EndpointRouter. <p/>More specifically, this protocol will be used to route messages who's final destination is <b>not</b> one of the endpoint addresses available from getReachableEndpointAddresses.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if the protocol can be used by the EndpointRouter</DL></DD></DL><HR><A NAME="getMessenger(net.jxta.endpoint.EndpointAddress, java.lang.Object)"><!-- --></A><H3>getMessenger</H3><PRE>public <A HREF="../../../net/jxta/endpoint/Messenger.html" title="interface in net.jxta.endpoint">Messenger</A> <B>getMessenger</B>(<A HREF="../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;dest,                              java.lang.Object&nbsp;hint)</PRE><DL><DD>Creates an <A HREF="../../../net/jxta/endpoint/EndpointMessenger.html" title="interface in net.jxta.endpoint"><CODE>EndpointMessenger</CODE></A> for sending messages to the specified destination <A HREF="../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint"><CODE>EndpointAddress</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dest</CODE> - EndpointAddress of the destination<DD><CODE>hint</CODE> - A hint for the transport to use when creating the messenger.<DT><B>Returns:</B><DD>a Messenger. null is returned if the EndpointAddress is not reachable.</DL></DD></DL><HR><A NAME="propagate(net.jxta.endpoint.Message, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>propagate</H3><PRE>public void <B>propagate</B>(<A HREF="../../../net/jxta/endpoint/Message.html" title="class in net.jxta.endpoint">Message</A>&nbsp;msg,                      java.lang.String&nbsp;serviceName,                      java.lang.String&nbsp;serviceParams,                      java.lang.String&nbsp;prunePeer)               throws java.io.IOException</PRE><DL><DD>Propagates a Message on this EndpointProtocol.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - the Message to be propagated<DD><CODE>serviceName</CODE> - Contains the name of the destination service, if any. This will be integrated into the destination address.<DD><CODE>serviceParams</CODE> - Contains the parameters associated with the service, if any. This will be integrated into the destination address.<DD><CODE>prunePeer</CODE> - a peer which should not receive the propagated message or null for all peers. This is sometimes used in flooding type algorithms to avoid sending to the peer that this received the message from. WARNING: The message object should not be reused or modified after the call is made. Concurrent modifications will produce unexpected result.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - is thrown when the message could not be propagated.</DL></DD></DL><HR><A NAME="ping(net.jxta.endpoint.EndpointAddress)"><!-- --></A><H3>ping</H3><PRE>public boolean <B>ping</B>(<A HREF="../../../net/jxta/endpoint/EndpointAddress.html" title="class in net.jxta.endpoint">EndpointAddress</A>&nbsp;addr)</PRE><DL><DD>Returns true if the target address is reachable via this Message Transport otherwise returns false.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean true if this protocol claims it can reach the given address otherwise false.</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/MessageSender.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/MessageReceiver.html" title="interface in net.jxta.endpoint"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/jxta/endpoint/MessageTransport.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="MessageSender.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;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&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 + -