?? platformconfigurator.html
字號:
java.lang.String password)</PRE><DL><DD><B>Deprecated.</B> <DD>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. This profile is also intended to be used by peers that do not have a static IP (DHCP). This profile is typical of dial-up JXTA peers.<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>relays</CODE> - vector containing relays seeding peers. The vector contains the addresses (as String) of the seeding relays 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 relay peers. A relay peer is necessary for an edge peer behind a firewall in order to connect to the network.<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="createHttpProxyEdge(java.lang.String, java.lang.String, java.lang.String, java.util.Vector, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createHttpProxyEdge</H3><PRE>public static <A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> <B>createHttpProxyEdge</B>(java.lang.String peerName, java.lang.String peerDesc, java.lang.String proxy, java.util.Vector relays, 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 HTTP . firewall . optional HTTP proxy This profile is for peers that are behind a firewall which does not allow outgoing TCP connection, but only HTTP (web browsing) connection. This profile can optionally use a web proxy. This profile is typical of JXTA peers that are on a very restrictive network, where only web browsing is allowed.<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>proxy</CODE> - address of the web proxy to use, including the port number (for instance 192.168.1.2:8080). If set to null, no proxy is configured.<DD><CODE>relays</CODE> - vector containing relays seeding peers. The vector contains the addresses (as String) of the seeding relays 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 relay peers. A relay peer is necessary for an edge peer behind a firewall in order to connect to the network.<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="createRdvAndRelay(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, java.util.Vector, java.lang.String, java.lang.String)"><!-- --></A><H3>createRdvAndRelay</H3><PRE>public static <A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> <B>createRdvAndRelay</B>(java.lang.String peerName, java.lang.String peerDesc, java.lang.String tcpIp, int tcpPort, java.lang.String httpIp, int httpPort, java.util.Vector rdvs, java.lang.String user, java.lang.String password)</PRE><DL><DD><B>Deprecated.</B> <DD>Configure a Rendezvous and Relay peer. This profile is for the peers that want to provide resources for other peers: . acts as a rendezvous: this peer will be used by other peers for indexing and search. . acts as a relay: this peer will be used by edge peers behind a firewall in order to access the network. Only peer with a static IP, no firewall (or an open firewall), a good internet connection, enough memory and disk should use this configuration. This profile sets up TCP and HTTP as transport protocol, acts as a rendezvous and a relay.<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>tcpIp</CODE> - public IP (or DNS name) for TCP transport. tcpIp is set to null if there is not a NAT. In case of NAT, tcpIp must be set to the public IP address (or DNS) of the peer.<DD><CODE>tcpPort</CODE> - TCP transport port number (mandatory)<DD><CODE>httpIp</CODE> - public IP (or DNS name) for HTTP transport. httpIp is set to null if there is not a NAT. In case of NAT, httpIp must be set to the public IP address (or DNS) of the peer.<DD><CODE>httpPort</CODE> - HTTP transport 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="save(net.jxta.impl.protocol.PlatformConfig)"><!-- --></A><H3>save</H3><PRE>public static void <B>save</B>(<A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> adv) throws java.io.IOException</PRE><DL><DD><B>Deprecated.</B> <DD>Saves a PlatformConfig in the local directory.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>adv</CODE> - the configuration to be saved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - when writing into the file failed.</DL></DD></DL><HR><A NAME="loadBootStrap(java.lang.String)"><!-- --></A><H3>loadBootStrap</H3><PRE>public static java.util.Vector <B>loadBootStrap</B>(java.lang.String urlString) throws java.io.IOException</PRE><DL><DD><B>Deprecated.</B> <DD>Convenience method to load boot strap rendezvous and relays.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>urlString</CODE> - The boot URL as string<DT><B>Returns:</B><DD>vector The vector contains the addresses (as String) of the boot rendezvous/relays peers as an URL (for instance: tcp://192.168.1.10:9701) containing the port number.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><CODE>BOOT_STRAP_RELAYS</CODE>, <CODE>BOOT_STRAP_RENDEZVOUS</CODE></DL></DD></DL><HR><A NAME="loadBootStrap(java.net.URL)"><!-- --></A><H3>loadBootStrap</H3><PRE>public static java.util.Vector <B>loadBootStrap</B>(java.net.URL url) throws java.io.IOException</PRE><DL><DD><B>Deprecated.</B> <DD>Convenience method to load boot strap rendezvous and relays.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - The boot URL<DT><B>Returns:</B><DD>vector The vector contains the addresses (as String) of the boot rendezvous/relays peers as an URL (for instance: tcp://192.168.1.10:9701) containing the port number.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><CODE>BOOT_STRAP_RELAYS</CODE>, <CODE>BOOT_STRAP_RENDEZVOUS</CODE></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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PlatformConfigurator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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"> <A HREF="../../../../net/jxta/util/config/PlatformConfiguration.html" title="class in net.jxta.util.config"><B>PREV CLASS</B></A> <A HREF="../../../../net/jxta/util/config/ProxyConfigurator.html" title="class in net.jxta.util.config"><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> <A HREF="PlatformConfigurator.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -