?? platformconfigurator.html
字號:
This profile is for peers that do not want to be used by other peers, but have a direct connection to the Internet, using a static IP address (with or without NAT), and either not using a firewall (or with the given port open on the firewall).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#createTcpRelayEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.util.Vector, java.lang.String, java.lang.String)">createTcpRelayEdge</A></B>(java.lang.String peerName, java.lang.String peerDesc, java.lang.String ip, int port, java.util.Vector relays, java.util.Vector rdvs, java.lang.String user, java.lang.String password)</CODE><BR> <B>Deprecated.</B> Configure an edge peer with the following properties: . use TCP . firewall . optional NAT . optional dynamic IP (DHCP) This profile is for peers that are behind a firewall, with of without NAT. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#getPlatformConfigFileName()">getPlatformConfigFileName</A></B>()</CODE><BR> <B>Deprecated.</B> Convenience methods that returns the relative pathname of the configuration file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#loadBootStrap(java.lang.String)">loadBootStrap</A></B>(java.lang.String urlString)</CODE><BR> <B>Deprecated.</B> Convenience method to load boot strap rendezvous and relays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#loadBootStrap(java.net.URL)">loadBootStrap</A></B>(java.net.URL url)</CODE><BR> <B>Deprecated.</B> Convenience method to load boot strap rendezvous and relays.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/util/config/PlatformConfigurator.html#save(net.jxta.impl.protocol.PlatformConfig)">save</A></B>(<A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> adv)</CODE><BR> <B>Deprecated.</B> Saves a PlatformConfig in the local directory.</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="PLATFORM_CONFIG_FILENAME"><!-- --></A><H3>PLATFORM_CONFIG_FILENAME</H3><PRE>public static final java.lang.String <B>PLATFORM_CONFIG_FILENAME</B></PRE><DL><DD><B>Deprecated.</B> <DD>Standard file name where the local configuration is stored.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.util.config.PlatformConfigurator.PLATFORM_CONFIG_FILENAME">Constant Field Values</A></DL></DL><HR><A NAME="BOOT_STRAP_RENDEZVOUS"><!-- --></A><H3>BOOT_STRAP_RENDEZVOUS</H3><PRE>public static final java.lang.String <B>BOOT_STRAP_RENDEZVOUS</B></PRE><DL><DD><B>Deprecated.</B> <DD>Standard boot strap url for available rendezvous.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.util.config.PlatformConfigurator.BOOT_STRAP_RENDEZVOUS">Constant Field Values</A></DL></DL><HR><A NAME="BOOT_STRAP_RELAYS"><!-- --></A><H3>BOOT_STRAP_RELAYS</H3><PRE>public static final java.lang.String <B>BOOT_STRAP_RELAYS</B></PRE><DL><DD><B>Deprecated.</B> <DD>Standard boot strap url for available relays.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#net.jxta.util.config.PlatformConfigurator.BOOT_STRAP_RELAYS">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="PlatformConfigurator()"><!-- --></A><H3>PlatformConfigurator</H3><PRE>public <B>PlatformConfigurator</B>()</PRE><DL><DD><B>Deprecated.</B> </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="getPlatformConfigFileName()"><!-- --></A><H3>getPlatformConfigFileName</H3><PRE>public static java.lang.String <B>getPlatformConfigFileName</B>()</PRE><DL><DD><B>Deprecated.</B> <DD>Convenience methods that returns the relative pathname of the configuration file.<P><DD><DL><DT><B>Returns:</B><DD>String the relative path name of the configuration.</DL></DD></DL><HR><A NAME="createTcpEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createTcpEdge</H3><PRE>public static <A HREF="../../../../net/jxta/protocol/ConfigParams.html" title="class in net.jxta.protocol">ConfigParams</A> <B>createTcpEdge</B>(java.lang.String peerName, java.lang.String peerDesc, java.lang.String ip, int port, java.util.Vector rdvs, java.lang.String user, java.lang.String password)</PRE><DL><DD><B>Deprecated.</B> <DD>Configure an edge peer with the following properties: . static IP . use TCP . no firewall . optional NAT This profile is for peers that do not want to be used by other peers, but have a direct connection to the Internet, using a static IP address (with or without NAT), and either not using a firewall (or with the given port open on the firewall).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>peerName</CODE> - name of the peer (mandatory)<DD><CODE>peerDesc</CODE> - description of the peer (optional, can be null)<DD><CODE>ip</CODE> - public IP (or DNS name) of the peer. ip is set to null if there is not a NAT. In case of NAT, ip must be set to the public IP address (or DNS) of the peer.<DD><CODE>port</CODE> - port number (mandatory)<DD><CODE>rdvs</CODE> - vector containing rendezvous seeding peers. The vector contains the addresses (as String) of the seeding rendezvous peers as an URL (for instance: tcp://192.168.1.10:9701) containing the port number. If rdvs is set to null, the peer will not have any seeding rendezvous peers.<DD><CODE>user</CODE> - name of the user (mandatory). Set to "password" if the peer does not require user login.<DD><CODE>password</CODE> - password of the user (mandatory). Set to "password" if the peer does not require user login.<DT><B>Returns:</B><DD>PlatformConfig returns a ConfigParams configured as specified.</DL></DD></DL><HR><A NAME="createTcpAdHocEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createTcpAdHocEdge</H3><PRE>public static <A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> <B>createTcpAdHocEdge</B>(java.lang.String peerName, java.lang.String peerDesc, java.lang.String ip, int port, java.util.Vector rdvs, java.lang.String user, java.lang.String password)</PRE><DL><DD><B>Deprecated.</B> <DD>Configure an edge peer with the following properties: . use TCP (with multicast) . no firewall This profile is for peers that are running in an ad-hoc environement: there is other JXTA peers on the same lan.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>peerName</CODE> - name of the peer (mandatory)<DD><CODE>peerDesc</CODE> - description of the peer (optional, can be null)<DD><CODE>ip</CODE> - public IP (or DNS name) of the peer. ip is set to null if there is not a NAT. In case of NAT, ip must be set to the public IP address (or DNS) of the peer.<DD><CODE>port</CODE> - port number (mandatory)<DD><CODE>rdvs</CODE> - vector containing rendezvous seeding peers. The vector contains the addresses (as String) of the seeding rendezvous peers as an URL (for instance: tcp://192.168.1.10:9701) containing the port number. If rdvs is set to null, the peer will not have any seeding rendezvous peers.<DD><CODE>user</CODE> - name of the user (mandatory). Set to "password" if the peer does not require user login.<DD><CODE>password</CODE> - password of the user (mandatory). Set to "password" if the peer does not require user login.<DT><B>Returns:</B><DD>PlatformConfig returns a PlatformConfig configured as specified.</DL></DD></DL><HR><A NAME="createTcpRelayEdge(java.lang.String, java.lang.String, java.lang.String, int, java.util.Vector, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createTcpRelayEdge</H3><PRE>public static <A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> <B>createTcpRelayEdge</B>(java.lang.String peerName, java.lang.String peerDesc, java.lang.String ip, int port, java.util.Vector relays, java.util.Vector rdvs, java.lang.String user,
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -