📄 settingshandler.html
字号:
static final java.lang.String <B>TIMESTAMP</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.settings.SettingsHandler.TIMESTAMP">Constant Field Values</A></DL></DL><HR><A NAME="MAP"><!-- --></A><H3>MAP</H3><PRE>static final java.lang.String <B>MAP</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.settings.SettingsHandler.MAP">Constant Field Values</A></DL></DL><HR><A NAME="INTEGER_LIST"><!-- --></A><H3>INTEGER_LIST</H3><PRE>static final java.lang.String <B>INTEGER_LIST</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.settings.SettingsHandler.INTEGER_LIST">Constant Field Values</A></DL></DL><HR><A NAME="LONG_LIST"><!-- --></A><H3>LONG_LIST</H3><PRE>static final java.lang.String <B>LONG_LIST</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.settings.SettingsHandler.LONG_LIST">Constant Field Values</A></DL></DL><HR><A NAME="FLOAT_LIST"><!-- --></A><H3>FLOAT_LIST</H3><PRE>static final java.lang.String <B>FLOAT_LIST</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.settings.SettingsHandler.FLOAT_LIST">Constant Field Values</A></DL></DL><HR><A NAME="DOUBLE_LIST"><!-- --></A><H3>DOUBLE_LIST</H3><PRE>static final java.lang.String <B>DOUBLE_LIST</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.settings.SettingsHandler.DOUBLE_LIST">Constant Field Values</A></DL></DL><HR><A NAME="STRING_LIST"><!-- --></A><H3>STRING_LIST</H3><PRE>static final java.lang.String <B>STRING_LIST</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.archive.crawler.settings.SettingsHandler.STRING_LIST">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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="SettingsHandler()"><!-- --></A><H3>SettingsHandler</H3><PRE>public <B>SettingsHandler</B>() throws javax.management.InvalidAttributeValueException</PRE><DL><DD>Create a new SettingsHandler object.<P><DL><DT><B>Throws:</B><DD><CODE>javax.management.InvalidAttributeValueException</CODE></DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="initialize()"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>()</PRE><DL><DD>Initialize the SettingsHandler. This method reads the default settings from the persistent storage.<P><DD><DL></DL></DD></DL><HR><A NAME="cleanup()"><!-- --></A><H3>cleanup</H3><PRE>public void <B>cleanup</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getParentScope(java.lang.String)"><!-- --></A><H3>getParentScope</H3><PRE>protected java.lang.String <B>getParentScope</B>(java.lang.String scope)</PRE><DL><DD>Strip off the leftmost part of a domain name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scope</CODE> - the domain name.<DT><B>Returns:</B><DD>scope with everything before the first dot ripped off.</DL></DD></DL><HR><A NAME="getModule(java.lang.String)"><!-- --></A><H3>getModule</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/ModuleType.html" title="class in org.archive.crawler.settings">ModuleType</A> <B>getModule</B>(java.lang.String name)</PRE><DL><DD>Get a module by name. All modules in the order should have unique names. This method makes it possible to get the modules of the order by its name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the modules name.<DT><B>Returns:</B><DD>the module the name references.</DL></DD></DL><HR><A NAME="getComplexTypeByAbsoluteName(org.archive.crawler.settings.CrawlerSettings, java.lang.String)"><!-- --></A><H3>getComplexTypeByAbsoluteName</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/ComplexType.html" title="class in org.archive.crawler.settings">ComplexType</A> <B>getComplexTypeByAbsoluteName</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String absoluteName) throws javax.management.AttributeNotFoundException</PRE><DL><DD>Get a complex type by its absolute name. The absolute name is the complex types name and the path leading to it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the settings object to query.<DD><CODE>absoluteName</CODE> - the absolute name of the complex type to get.<DT><B>Returns:</B><DD>the complex type referenced by the absolute name or null if the complex type could not be found in this settings object.<DT><B>Throws:</B><DD><CODE>javax.management.AttributeNotFoundException</CODE> - is thrown if no ComplexType by this name exist.</DL></DD></DL><HR><A NAME="getTypeName(java.lang.String)"><!-- --></A><H3>getTypeName</H3><PRE>protected static java.lang.String <B>getTypeName</B>(java.lang.String className)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getClassName(java.lang.String)"><!-- --></A><H3>getClassName</H3><PRE>protected static java.lang.String <B>getClassName</B>(java.lang.String typeName)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="StringToType(java.lang.String, java.lang.String)"><!-- --></A><H3>StringToType</H3><PRE>protected static java.lang.Object <B>StringToType</B>(java.lang.String stringValue, java.lang.String typeName)</PRE><DL><DD>Convert a String object to an object of <code>typeName</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>stringValue</CODE> - string to convert.<DD><CODE>typeName</CODE> - type to convert to. typeName should be one of the supported types represented by constants in this class.<DT><B>Returns:</B><DD>the new value object.<DT><B>Throws:</B><DD><CODE>java.lang.ClassCastException</CODE> - is thrown if string could not be converted.</DL></DD></DL><HR><A NAME="getSettings(java.lang.String)"><!-- --></A><H3>getSettings</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> <B>getSettings</B>(java.lang.String host)</PRE><DL><DD>Get CrawlerSettings object in effect for a host or domain. If there is no specific settings for the host/domain, it will recursively go up the hierarchy to find the settings object that should be used for this host/domain.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - the host or domain to get the settings for.<DT><B>Returns:</B><DD>settings object in effect for the host/domain.<DT><B>See Also:</B><DD><A HREF="../../../../org/archive/crawler/settings/SettingsHandler.html#getSettingsObject(java.lang.String)"><CODE>getSettingsObject(String)</CODE></A>, <A HREF="../../../../org/archive/crawler/settings/SettingsHandler.html#getOrCreateSettingsObject(java.lang.String)"><CODE>getOrCreateSettingsObject(String)</CODE></A></DL></DD></DL><HR><A NAME="getSettings(java.lang.String, org.archive.net.UURI)"><!-- --></A><H3>getSettings</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> <B>getSettings</B>(java.lang.String host, <A HREF="../../../../org/archive/net/UURI.html" title="class in org.archive.net">UURI</A> uuri)</PRE><DL><DD>Get CrawlerSettings object in effect for a host or domain. If there is no specific settings for the host/domain, it will recursively go up the hierarchy to find the settings object that should be used for this host/domain. <p/> This method passes around a URI that refinement are checked against.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - the host or domain to get the settings for.<DD><CODE>uuri</CODE> - UURI for context.<DT><B>Returns:</B><DD>settings object in effect for the host/domain.<DT><B>See Also:</B><DD><A HREF="../../../../org/archive/crawler/settings/SettingsHandler.html#getSettingsObject(java.lang.String)"><CODE>getSettingsObject(String)</CODE></A>, <A HREF="../../../../org/archive/crawler/settings/SettingsHandler.html#getOrCreateSettingsObject(java.lang.String)"><CODE>getOrCreateSettingsObject(String)</CODE></A></DL></DD></DL><HR><A NAME="getSettingsForHost(java.lang.String)"><!-- --></A><H3>getSettingsForHost</H3><PRE>protected <A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> <B>getSettingsForHost</B>(java.lang.String host)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getSettingsObject(java.lang.String)"><!-- --></A><H3>getSettingsObject</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> <B>getSettingsObject</B>(java.lang.String scope)</PRE><DL><DD>Get CrawlerSettings object for a host or domain. The difference between this method and the <code>getSettings(String host)</code> is that this method will return null if there is no settings for particular host or domain.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scope</CODE> - the host or domain to get the settings for.<DT><B>Returns:</B><DD>settings object for the host/domain or null if no settings exist for the host/domain.<DT><B>See Also:</B><DD><A HREF="../../../../org/archive/crawler/settings/SettingsHandler.html#getSettings(java.lang.String)"><CODE>getSettings(String)</CODE></A>, <A HREF="../../../../org/archive/crawler/settings/SettingsHandler.html#getOrCreateSettingsObject(java.lang.String)"><CODE>getOrCreateSettingsObject(String)</CODE></A></DL></DD></DL><HR><A NAME="getSettingsObject(java.lang.String, java.lang.String)"><!-- --></A><H3>getSettingsObject</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> <B>getSettingsObject</B>(java.lang.String scope, java.lang.String refinement)</PRE><DL><DD>Get CrawlerSettings object for a host/domain and a particular refinement.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scope</CODE> - the host or domain to get the settings for.<DD><CODE>refinement</CODE> - the refinement reference to get.<DT><B>Returns:</B><DD>CrawlerSettings object for a host/domain and a particular refinement or null if no settings exist for the host/domain.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -