📄 jobconfigureutils.html
字号:
<DD><DL><DT><B>Parameters:</B><DD><CODE>job</CODE> - Job to check.<DD><CODE>response</CODE> - Http response.<DD><CODE>redirectBasePath</CODE> - Full path for where to go next if an error.<DD><CODE>currDomain</CODE> - May be null. E.g. "/admin/jobs/per/overview.jsp".<DT><B>Returns:</B><DD>A job else we've redirected if no job or readonly.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="handleJobAction(org.archive.crawler.admin.CrawlJobHandler, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>handleJobAction</H3><PRE>public static <A HREF="../../../../../org/archive/crawler/admin/CrawlJob.html" title="class in org.archive.crawler.admin">CrawlJob</A> <B>handleJobAction</B>(<A HREF="../../../../../org/archive/crawler/admin/CrawlJobHandler.html" title="class in org.archive.crawler.admin">CrawlJobHandler</A> handler, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String redirectBasePath, java.lang.String currDomain, java.lang.String reference) throws java.io.IOException, javax.management.AttributeNotFoundException, java.lang.reflect.InvocationTargetException, javax.management.InvalidAttributeValueException</PRE><DL><DD>Handle job action.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>handler</CODE> - CrawlJobHandler to operate on.<DD><CODE>request</CODE> - Http request.<DD><CODE>response</CODE> - Http response.<DD><CODE>redirectBasePath</CODE> - Full path for where to go next if an error. E.g. "/admin/jobs/per/overview.jsp".<DD><CODE>currDomain</CODE> - Current domain. Pass null for global domain.<DD><CODE>reference</CODE> - <DT><B>Returns:</B><DD>The crawljob configured.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE>javax.management.AttributeNotFoundException</CODE><DD><CODE>java.lang.reflect.InvocationTargetException</CODE><DD><CODE>javax.management.InvalidAttributeValueException</CODE></DL></DD></DL><HR><A NAME="printOutSeeds(org.archive.crawler.settings.SettingsHandler, java.lang.String)"><!-- --></A><H3>printOutSeeds</H3><PRE>public static void <B>printOutSeeds</B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> hndlr, java.lang.String payload) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException, java.io.IOException</PRE><DL><DD>Print complete seeds list on passed in PrintWriter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hndlr</CODE> - Current handler.<DD><CODE>payload</CODE> - What to write out.<DT><B>Throws:</B><DD><CODE>javax.management.AttributeNotFoundException</CODE><DD><CODE>javax.management.MBeanException</CODE><DD><CODE>javax.management.ReflectionException</CODE><DD><CODE>java.io.IOException</CODE><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="printOutSeeds(org.archive.crawler.settings.SettingsHandler, java.io.Writer)"><!-- --></A><H3>printOutSeeds</H3><PRE>public static void <B>printOutSeeds</B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> hndlr, java.io.Writer out) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException, java.io.IOException</PRE><DL><DD>Print complete seeds list on passed in PrintWriter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hndlr</CODE> - Current handler.<DD><CODE>out</CODE> - Writer to write out all seeds to.<DT><B>Throws:</B><DD><CODE>javax.management.ReflectionException</CODE><DD><CODE>javax.management.MBeanException</CODE><DD><CODE>javax.management.AttributeNotFoundException</CODE><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="seedsEdittableSize(org.archive.crawler.settings.SettingsHandler)"><!-- --></A><H3>seedsEdittableSize</H3><PRE>public static boolean <B>seedsEdittableSize</B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> h) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException</PRE><DL><DD>Test whether seeds file is of a size that's reasonable to edit in an HTML textarea.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>h</CODE> - current settingsHandler<DT><B>Returns:</B><DD>true if seeds size is manageable, false otherwise<DT><B>Throws:</B><DD><CODE>javax.management.AttributeNotFoundException</CODE><DD><CODE>javax.management.MBeanException</CODE><DD><CODE>javax.management.ReflectionException</CODE></DL></DD></DL><HR><A NAME="getSeedFile(org.archive.crawler.settings.SettingsHandler)"><!-- --></A><H3>getSeedFile</H3><PRE>protected static java.io.File <B>getSeedFile</B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> hndlr) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException</PRE><DL><DD><DL><DT><B>Parameters:</B><DD><CODE>hndlr</CODE> - Settings handler.<DT><B>Returns:</B><DD>Seeds file.<DT><B>Throws:</B><DD><CODE>javax.management.ReflectionException</CODE><DD><CODE>javax.management.MBeanException</CODE><DD><CODE>javax.management.AttributeNotFoundException</CODE></DL></DD></DL><HR><A NAME="getSeedStream(org.archive.crawler.settings.SettingsHandler)"><!-- --></A><H3>getSeedStream</H3><PRE>protected static java.io.InputStream <B>getSeedStream</B>(<A HREF="../../../../../org/archive/crawler/settings/SettingsHandler.html" title="class in org.archive.crawler.settings">SettingsHandler</A> hndlr) throws java.io.IOException, javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException</PRE><DL><DD>Return seeds as a stream. This method will work for case where seeds are on disk or on classpath.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>hndlr</CODE> - SettingsHandler. Used to find seeds.txt file.<DT><B>Returns:</B><DD>InputStream on current seeds file.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE><DD><CODE>javax.management.ReflectionException</CODE><DD><CODE>javax.management.MBeanException</CODE><DD><CODE>javax.management.AttributeNotFoundException</CODE></DL></DD></DL><HR><A NAME="writeReader(java.io.Reader, java.io.Writer)"><!-- --></A><H3>writeReader</H3><PRE>protected static void <B>writeReader</B>(java.io.Reader reader, java.io.Writer out) throws java.io.IOException</PRE><DL><DD>Print complete seeds list on passed in PrintWriter.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>reader</CODE> - File to read seeds from.<DD><CODE>out</CODE> - Writer to write out all seeds to.<DT><B>Throws:</B><DD><CODE>java.io.IOException</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=2 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/JobConfigureUtils.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../org/archive/crawler/admin/ui/CookieUtils.html" title="class in org.archive.crawler.admin.ui"><B>PREV CLASS</B></A> <A HREF="../../../../../org/archive/crawler/admin/ui/RootFilter.html" title="class in org.archive.crawler.admin.ui"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/archive/crawler/admin/ui/JobConfigureUtils.html" target="_top"><B>FRAMES</B></A> <A HREF="JobConfigureUtils.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>Copyright © 2003-2006 Internet Archive. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -