📄 jobconfigureutils.html
字号:
<BR> Handle job action.</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="../../../../../org/archive/crawler/admin/ui/JobConfigureUtils.html#printOutSeeds(org.archive.crawler.settings.SettingsHandler, java.lang.String)">printOutSeeds</A></B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> hndlr, java.lang.String payload)</CODE><BR> Print complete seeds list on passed in PrintWriter.</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="../../../../../org/archive/crawler/admin/ui/JobConfigureUtils.html#printOutSeeds(org.archive.crawler.settings.SettingsHandler, java.io.Writer)">printOutSeeds</A></B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> hndlr, java.io.Writer out)</CODE><BR> Print complete seeds list on passed in PrintWriter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/archive/crawler/admin/ui/JobConfigureUtils.html#seedsEdittableSize(org.archive.crawler.settings.SettingsHandler)">seedsEdittableSize</A></B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> h)</CODE><BR> Test whether seeds file is of a size that's reasonable to edit in an HTML textarea.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/archive/crawler/admin/ui/JobConfigureUtils.html#writeAttribute(java.lang.String, java.lang.String, org.archive.crawler.settings.ComplexType, org.archive.crawler.settings.CrawlerSettings, java.lang.Object)">writeAttribute</A></B>(java.lang.String attName, java.lang.String attAbsoluteName, <A HREF="../../../../../org/archive/crawler/settings/ComplexType.html" title="class in org.archive.crawler.settings">ComplexType</A> mbean, <A HREF="../../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.Object value)</CODE><BR> Write out attribute.</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="../../../../../org/archive/crawler/admin/ui/JobConfigureUtils.html#writeNewOrderFile(org.archive.crawler.settings.ComplexType, org.archive.crawler.settings.CrawlerSettings, javax.servlet.http.HttpServletRequest, boolean)">writeNewOrderFile</A></B>(<A HREF="../../../../../org/archive/crawler/settings/ComplexType.html" title="class in org.archive.crawler.settings">ComplexType</A> mbean, <A HREF="../../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, javax.servlet.http.HttpServletRequest request, boolean expert)</CODE><BR> This methods updates a ComplexType with information passed to it by a HttpServletRequest.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/archive/crawler/admin/ui/JobConfigureUtils.html#writeReader(java.io.Reader, java.io.Writer)">writeReader</A></B>(java.io.Reader reader, java.io.Writer out)</CODE><BR> Print complete seeds list on passed in PrintWriter.</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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="ACTION"><!-- --></A><H3>ACTION</H3><PRE>public static final java.lang.String <B>ACTION</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.archive.crawler.admin.ui.JobConfigureUtils.ACTION">Constant Field Values</A></DL></DL><HR><A NAME="SUBACTION"><!-- --></A><H3>SUBACTION</H3><PRE>public static final java.lang.String <B>SUBACTION</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.archive.crawler.admin.ui.JobConfigureUtils.SUBACTION">Constant Field Values</A></DL></DL><HR><A NAME="FILTERS"><!-- --></A><H3>FILTERS</H3><PRE>public static final java.lang.String <B>FILTERS</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.archive.crawler.admin.ui.JobConfigureUtils.FILTERS">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="JobConfigureUtils()"><!-- --></A><H3>JobConfigureUtils</H3><PRE>public <B>JobConfigureUtils</B>()</PRE><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="getAndCheckJob(org.archive.crawler.admin.CrawlJob, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>getAndCheckJob</H3><PRE>protected static <A HREF="../../../../../org/archive/crawler/admin/CrawlJob.html" title="class in org.archive.crawler.admin">CrawlJob</A> <B>getAndCheckJob</B>(<A HREF="../../../../../org/archive/crawler/admin/CrawlJob.html" title="class in org.archive.crawler.admin">CrawlJob</A> job, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)</PRE><DL><DD>Check passed crawljob CrawlJob setting. Call this method at start of page.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>job</CODE> - Current CrawlJobHandler.<DD><CODE>request</CODE> - Http request.<DD><CODE>response</CODE> - Http response.<DT><B>Returns:</B><DD>Crawljob.</DL></DD></DL><HR><A NAME="writeNewOrderFile(org.archive.crawler.settings.ComplexType, org.archive.crawler.settings.CrawlerSettings, javax.servlet.http.HttpServletRequest, boolean)"><!-- --></A><H3>writeNewOrderFile</H3><PRE>public static void <B>writeNewOrderFile</B>(<A HREF="../../../../../org/archive/crawler/settings/ComplexType.html" title="class in org.archive.crawler.settings">ComplexType</A> mbean, <A HREF="../../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, javax.servlet.http.HttpServletRequest request, boolean expert)</PRE><DL><DD>This methods updates a ComplexType with information passed to it by a HttpServletRequest. It assumes that for every 'simple' type there is a corresponding parameter in the request. A recursive call will be made for any nested ComplexTypes. For each attribute it will check if the relevant override is set (name.override parameter equals 'true'). If so the attribute setting on the specified domain level (settings) will be rewritten. If it is not we well ensure that it isn't being overridden.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mbean</CODE> - The ComplexType to update<DD><CODE>settings</CODE> - CrawlerSettings for the domain to override setting for. null denotes the global settings.<DD><CODE>request</CODE> - The HttpServletRequest to use to update the ComplexType<DD><CODE>expert</CODE> - if true expert settings will be updated, otherwise they will be ignored.</DL></DD></DL><HR><A NAME="checkAttribute(org.archive.crawler.settings.ModuleAttributeInfo, org.archive.crawler.settings.ComplexType, org.archive.crawler.settings.CrawlerSettings, javax.servlet.http.HttpServletRequest, boolean)"><!-- --></A><H3>checkAttribute</H3><PRE>protected static void <B>checkAttribute</B>(<A HREF="../../../../../org/archive/crawler/settings/ModuleAttributeInfo.html" title="class in org.archive.crawler.settings">ModuleAttributeInfo</A> att, <A HREF="../../../../../org/archive/crawler/settings/ComplexType.html" title="class in org.archive.crawler.settings">ComplexType</A> mbean, <A HREF="../../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, javax.servlet.http.HttpServletRequest request, boolean expert)</PRE><DL><DD>Process passed attribute. Check if needs to be written and if so, write it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - Attribute to process.<DD><CODE>mbean</CODE> - The ComplexType to update<DD><CODE>settings</CODE> - CrawlerSettings for the domain to override setting for. null denotes the global settings.<DD><CODE>request</CODE> - The HttpServletRequest to use to update the ComplexType<DD><CODE>expert</CODE> - if true expert settings will be updated, otherwise they will be ignored.</DL></DD></DL><HR><A NAME="writeAttribute(java.lang.String, java.lang.String, org.archive.crawler.settings.ComplexType, org.archive.crawler.settings.CrawlerSettings, java.lang.Object)"><!-- --></A><H3>writeAttribute</H3><PRE>protected static void <B>writeAttribute</B>(java.lang.String attName, java.lang.String attAbsoluteName, <A HREF="../../../../../org/archive/crawler/settings/ComplexType.html" title="class in org.archive.crawler.settings">ComplexType</A> mbean, <A HREF="../../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.Object value)</PRE><DL><DD>Write out attribute.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>attName</CODE> - Attribute short name.<DD><CODE>attAbsoluteName</CODE> - Attribute full name.<DD><CODE>mbean</CODE> - The ComplexType to update<DD><CODE>settings</CODE> - CrawlerSettings for the domain to override setting for. null denotes the global settings.<DD><CODE>value</CODE> - Value to set into the attribute.</DL></DD></DL><HR><A NAME="checkCrawlJob(org.archive.crawler.admin.CrawlJob, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)"><!-- --></A><H3>checkCrawlJob</H3><PRE>public static <A HREF="../../../../../org/archive/crawler/admin/CrawlJob.html" title="class in org.archive.crawler.admin">CrawlJob</A> <B>checkCrawlJob</B>(<A HREF="../../../../../org/archive/crawler/admin/CrawlJob.html" title="class in org.archive.crawler.admin">CrawlJob</A> job, javax.servlet.http.HttpServletResponse response, java.lang.String redirectBasePath, java.lang.String currDomain) throws java.io.IOException</PRE><DL><DD>Check passed job is not null and not readonly.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -