📄 configurator.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/ext/config/Configurator.html#setTrace(net.jxta.ext.config.Trace)">setTrace</A></B>(<A HREF="../../../../net/jxta/ext/config/Trace.html" title="class in net.jxta.ext.config">Trace</A> trace)</CODE><BR> Sets the <code>Trace</code> level.</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><A HREF="../../../../net/jxta/ext/config/Configurator.html#setTransport(net.jxta.ext.config.Transport)">setTransport</A></B>(<A HREF="../../../../net/jxta/ext/config/Transport.html" title="class in net.jxta.ext.config">Transport</A> transport)</CODE><BR> Sets the transport attribute of the Configurator object</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><A HREF="../../../../net/jxta/ext/config/Configurator.html#setTransports(java.util.List)">setTransports</A></B>(java.util.List transports)</CODE><BR> Sets the transports attribute of the Configurator object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static java.net.URI</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/ext/config/Configurator.html#toAllAddresses(java.net.URI)">toAllAddresses</A></B>(java.net.URI base)</CODE><BR> Method to transpose <code>URI</code> into one that represents all local interfaces.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../net/jxta/ext/config/Configurator.html#transportsContainsScheme(java.lang.String)">transportsContainsScheme</A></B>(java.lang.String scheme)</CODE><BR> Description of the Method</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><A HREF="../../../../net/jxta/ext/config/Configurator.html#writeExternal(java.io.ObjectOutput)">writeExternal</A></B>(java.io.ObjectOutput out)</CODE><BR> Persist</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 =========== --><!-- ========= 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="Configurator()"><!-- --></A><H3>Configurator</H3><PRE>public <B>Configurator</B>()</PRE><DL><DD>Constructor for the Configurator object.<P></DL><HR><A NAME="Configurator(java.lang.String, java.lang.String)"><!-- --></A><H3>Configurator</H3><PRE>public <B>Configurator</B>(java.lang.String principal, java.lang.String password)</PRE><DL><DD>Constructor for the Configurator object.<P><DT><B>Parameters:</B><DD><CODE>principal</CODE> - peer principal<DD><CODE>password</CODE> - peer password</DL><HR><A NAME="Configurator(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>Configurator</H3><PRE>public <B>Configurator</B>(java.lang.String name, java.lang.String principal, java.lang.String password)</PRE><DL><DD>Constructor for the Configurator object.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - peer name<DD><CODE>principal</CODE> - peer principal<DD><CODE>password</CODE> - peer password</DL><HR><A NAME="Configurator(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>Configurator</H3><PRE>public <B>Configurator</B>(java.lang.String name, java.lang.String description, java.lang.String principal, java.lang.String password)</PRE><DL><DD>Constructor for the Configurator object.<br> <br> If a <A HREF="../../../../net/jxta/ext/config/Env.html#PLATFORM_CONFIG"><CODE>Platform configuration file</CODE></A> is found residing in the <A HREF="../../../../net/jxta/ext/config/Env.html#JXTA_HOME"><CODE>JXTA home</CODE></A> directory it is used to seed this instance. If this fails and a <CODE>Env#PROFILEProfile</CODE> is found residing in the <A HREF="../../../../net/jxta/ext/config/Env.html#JXTA_HOME"><CODE>JXTA home</CODE></A> directory, it is, in turn, used to seed this instance. In the event neither of these configuration files are found the <A HREF="../../../../net/jxta/ext/config/Default.html" title="class in net.jxta.ext.config"><CODE>defaults</CODE></A> are configured accordingly.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - peer name<DD><CODE>description</CODE> - peer description<DD><CODE>principal</CODE> - peer principal<DD><CODE>password</CODE> - peer password<DT><B>See Also:</B><DD><A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol"><CODE>PlatformConfig</CODE></A></DL><HR><A NAME="Configurator(net.jxta.ext.config.Profile)"><!-- --></A><H3>Configurator</H3><PRE>public <B>Configurator</B>(<A HREF="../../../../net/jxta/ext/config/Profile.html" title="class in net.jxta.ext.config">Profile</A> profile)</PRE><DL><DD>Constructor for the Configurator object.<br> <br> If the provided <code>Profile</code> is null the <CODE>default profile</CODE> will be used in it's place.<P><DT><B>Parameters:</B><DD><CODE>profile</CODE> - profile</DL><HR><A NAME="Configurator(net.jxta.impl.protocol.PlatformConfig)"><!-- --></A><H3>Configurator</H3><PRE>public <B>Configurator</B>(<A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol">PlatformConfig</A> config)</PRE><DL><DD>Constructor for the Configurator object.<br> <br> If the provided <code>PlatformConfig</code> is null a default PlatformConfig will be used in it's place.<P><DT><B>Parameters:</B><DD><CODE>config</CODE> - configuration<DT><B>See Also:</B><DD><A HREF="../../../../net/jxta/impl/protocol/PlatformConfig.html" title="class in net.jxta.impl.protocol"><CODE>PlatformConfig</CODE></A></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="getHome()"><!-- --></A><H3>getHome</H3><PRE>public static java.io.File <B>getHome</B>()</PRE><DL><DD>Gets base JXTA home.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The home value</DL></DD></DL><HR><A NAME="setHome(java.io.File)"><!-- --></A><H3>setHome</H3><PRE>public static void <B>setHome</B>(java.io.File home)</PRE><DL><DD>Sets the home attribute of the Configurator class<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>home</CODE> - The new home value</DL></DD></DL><HR><A NAME="toAllAddresses(java.net.URI)"><!-- --></A><H3>toAllAddresses</H3><PRE>public static java.net.URI <B>toAllAddresses</B>(java.net.URI base)</PRE><DL><DD>Method to transpose <code>URI</code> into one that represents all local interfaces.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>base</CODE> - The provided address<DT><B>Returns:</B><DD>Description of the Return Value<DT><B>See Also:</B><DD><CODE>Env.ALL_ADDRESSES</CODE></DL></DD></DL><HR><A NAME="getDescriptor()"><!-- --></A><H3>getDescriptor</H3><PRE>public java.lang.String <B>getDescriptor</B>()</PRE><DL><DD>Gets the descriptor.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The descriptor value</DL></DD></DL><HR><A NAME="setDescriptor(java.lang.String)"><!-- --></A><H3>setDescriptor</H3><PRE>public void <B>setDescriptor</B>(java.lang.String descriptor)</PRE><DL><DD>Sets the descriptor<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>descriptor</CODE> - The new descriptor value</DL></DD></DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Gets the <code>Peer</code> name.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The peer name</DL></DD></DL><HR><A NAME="setName(java.lang.String)"><!-- --></A><H3>setName</H3><PRE>public void <B>setName</B>(java.lang.String name)</PRE><DL><DD>Sets the <code>Peer</code> name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the peer name</DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public java.lang.String <B>getDescription</B>()</PRE><DL><DD>Gets the <code>Peer</code> description.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The peer description</DL></DD></DL><HR><A NAME="setDescription(java.lang.String)"><!-- --></A><H3>setDescription</H3><PRE>public void <B>setDescription</B>(java.lang.String description)</PRE><DL><DD>Sets the <code>Peer</code> description.<P><DD><DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -