Java Doc for JobConfigureUtils.java in  » Web-Crawler » heritrix » org » archive » crawler » admin » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Crawler » heritrix » org.archive.crawler.admin.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.archive.crawler.admin.ui.JobConfigureUtils

JobConfigureUtils
public class JobConfigureUtils (Code)
Utility methods used configuring jobs in the admin UI. Methods are mostly called by the admin UI jsp.
author:
   stack
version:
   $Date: 2006-07-31 19:39:04 +0000 (Mon, 31 Jul 2006) $, $Revision: 4401 $


Field Summary
final public static  StringACTION
    
final public static  StringFILTERS
    
final public static  StringSUBACTION
    


Method Summary
protected static  voidcheckAttribute(ModuleAttributeInfo att, ComplexType mbean, CrawlerSettings settings, HttpServletRequest request, boolean expert)
     Process passed attribute.
public static  CrawlJobcheckCrawlJob(CrawlJob job, HttpServletResponse response, String redirectBasePath, String currDomain)
     Check passed job is not null and not readonly.
Parameters:
  job - Job to check.
Parameters:
  response - Http response.
Parameters:
  redirectBasePath - Full path for where to go next if an error.
Parameters:
  currDomain - May be null.E.g.
protected static  CrawlJobgetAndCheckJob(CrawlJob job, HttpServletRequest request, HttpServletResponse response)
     Check passed crawljob CrawlJob setting.
protected static  FilegetSeedFile(SettingsHandler hndlr)
    
Parameters:
  hndlr - Settings handler.
protected static  InputStreamgetSeedStream(SettingsHandler hndlr)
     Return seeds as a stream. This method will work for case where seeds are on disk or on classpath.
Parameters:
  hndlr - SettingsHandler.
public static  CrawlJobhandleJobAction(CrawlJobHandler handler, HttpServletRequest request, HttpServletResponse response, String redirectBasePath, String currDomain, String reference)
     Handle job action.
Parameters:
  handler - CrawlJobHandler to operate on.
Parameters:
  request - Http request.
Parameters:
  response - Http response.
Parameters:
  redirectBasePath - Full path for where to go next if an error.E.g.
public static  voidprintOutSeeds(SettingsHandler hndlr, String payload)
     Print complete seeds list on passed in PrintWriter.
public static  voidprintOutSeeds(SettingsHandler hndlr, Writer out)
     Print complete seeds list on passed in PrintWriter.
public static  booleanseedsEdittableSize(SettingsHandler h)
     Test whether seeds file is of a size that's reasonable to edit in an HTML textarea.
protected static  voidwriteAttribute(String attName, String attAbsoluteName, ComplexType mbean, CrawlerSettings settings, Object value)
     Write out attribute.
Parameters:
  attName - Attribute short name.
Parameters:
  attAbsoluteName - Attribute full name.
Parameters:
  mbean - The ComplexType to update
Parameters:
  settings - CrawlerSettings for the domain to override setting for.
public static  voidwriteNewOrderFile(ComplexType mbean, CrawlerSettings settings, HttpServletRequest request, boolean expert)
     This methods updates a ComplexType with information passed to it by a HttpServletRequest.
protected static  voidwriteReader(Reader reader, Writer out)
     Print complete seeds list on passed in PrintWriter.

Field Detail
ACTION
final public static String ACTION(Code)



FILTERS
final public static String FILTERS(Code)



SUBACTION
final public static String SUBACTION(Code)





Method Detail
checkAttribute
protected static void checkAttribute(ModuleAttributeInfo att, ComplexType mbean, CrawlerSettings settings, HttpServletRequest request, boolean expert)(Code)
Process passed attribute. Check if needs to be written and if so, write it.
Parameters:
  att - Attribute to process.
Parameters:
  mbean - The ComplexType to update
Parameters:
  settings - CrawlerSettings for the domain to override setting for. nulldenotes the global settings.
Parameters:
  request - The HttpServletRequest to use to update the ComplexType
Parameters:
  expert - if true expert settings will be updated, otherwise they willbe ignored.



checkCrawlJob
public static CrawlJob checkCrawlJob(CrawlJob job, HttpServletResponse response, String redirectBasePath, String currDomain) throws IOException(Code)
Check passed job is not null and not readonly.
Parameters:
  job - Job to check.
Parameters:
  response - Http response.
Parameters:
  redirectBasePath - Full path for where to go next if an error.
Parameters:
  currDomain - May be null.E.g. "/admin/jobs/per/overview.jsp". A job else we've redirected if no job or readonly.
throws:
  IOException -



getAndCheckJob
protected static CrawlJob getAndCheckJob(CrawlJob job, HttpServletRequest request, HttpServletResponse response)(Code)
Check passed crawljob CrawlJob setting. Call this method at start of page.
Parameters:
  job - Current CrawlJobHandler.
Parameters:
  request - Http request.
Parameters:
  response - Http response. Crawljob.



getSeedFile
protected static File getSeedFile(SettingsHandler hndlr) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)

Parameters:
  hndlr - Settings handler. Seeds file.
throws:
  ReflectionException -
throws:
  MBeanException -
throws:
  AttributeNotFoundException -



getSeedStream
protected static InputStream getSeedStream(SettingsHandler hndlr) throws IOException, AttributeNotFoundException, MBeanException, ReflectionException(Code)
Return seeds as a stream. This method will work for case where seeds are on disk or on classpath.
Parameters:
  hndlr - SettingsHandler. Used to find seeds.txt file. InputStream on current seeds file.
throws:
  IOException -
throws:
  ReflectionException -
throws:
  MBeanException -
throws:
  AttributeNotFoundException -



handleJobAction
public static CrawlJob handleJobAction(CrawlJobHandler handler, HttpServletRequest request, HttpServletResponse response, String redirectBasePath, String currDomain, String reference) throws IOException, AttributeNotFoundException, InvocationTargetException, InvalidAttributeValueException(Code)
Handle job action.
Parameters:
  handler - CrawlJobHandler to operate on.
Parameters:
  request - Http request.
Parameters:
  response - Http response.
Parameters:
  redirectBasePath - Full path for where to go next if an error.E.g. "/admin/jobs/per/overview.jsp".
Parameters:
  currDomain - Current domain. Pass null for global domain.
Parameters:
  reference - The crawljob configured.
throws:
  IOException -
throws:
  AttributeNotFoundException -
throws:
  InvocationTargetException -
throws:
  InvalidAttributeValueException -



printOutSeeds
public static void printOutSeeds(SettingsHandler hndlr, String payload) throws AttributeNotFoundException, MBeanException, ReflectionException, IOException(Code)
Print complete seeds list on passed in PrintWriter.
Parameters:
  hndlr - Current handler.
Parameters:
  payload - What to write out.
throws:
  AttributeNotFoundException -
throws:
  MBeanException -
throws:
  ReflectionException -
throws:
  IOException -
throws:
  IOException -



printOutSeeds
public static void printOutSeeds(SettingsHandler hndlr, Writer out) throws AttributeNotFoundException, MBeanException, ReflectionException, IOException(Code)
Print complete seeds list on passed in PrintWriter.
Parameters:
  hndlr - Current handler.
Parameters:
  out - Writer to write out all seeds to.
throws:
  ReflectionException -
throws:
  MBeanException -
throws:
  AttributeNotFoundException -
throws:
  IOException -



seedsEdittableSize
public static boolean seedsEdittableSize(SettingsHandler h) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)
Test whether seeds file is of a size that's reasonable to edit in an HTML textarea.
Parameters:
  h - current settingsHandler true if seeds size is manageable, false otherwise
throws:
  AttributeNotFoundException -
throws:
  MBeanException -
throws:
  ReflectionException -



writeAttribute
protected static void writeAttribute(String attName, String attAbsoluteName, ComplexType mbean, CrawlerSettings settings, Object value)(Code)
Write out attribute.
Parameters:
  attName - Attribute short name.
Parameters:
  attAbsoluteName - Attribute full name.
Parameters:
  mbean - The ComplexType to update
Parameters:
  settings - CrawlerSettings for the domain to override setting for. nulldenotes the global settings.
Parameters:
  value - Value to set into the attribute.



writeNewOrderFile
public static void writeNewOrderFile(ComplexType mbean, CrawlerSettings settings, HttpServletRequest request, boolean expert)(Code)
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.
Parameters:
  mbean - The ComplexType to update
Parameters:
  settings - CrawlerSettings for the domain to override setting for. nulldenotes the global settings.
Parameters:
  request - The HttpServletRequest to use to update the ComplexType
Parameters:
  expert - if true expert settings will be updated, otherwise they willbe ignored.



writeReader
protected static void writeReader(Reader reader, Writer out) throws IOException(Code)
Print complete seeds list on passed in PrintWriter.
Parameters:
  reader - File to read seeds from.
Parameters:
  out - Writer to write out all seeds to.
throws:
  IOException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.