Java Doc for ClassicScope.java in  » Web-Crawler » heritrix » org » archive » crawler » scope » 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.scope 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.archive.crawler.framework.CrawlScope
   org.archive.crawler.scope.ClassicScope

All known Subclasses:   org.archive.crawler.scope.SeedCachingScope,  org.archive.crawler.scope.BroadScope,  org.archive.crawler.scope.RefinedScope,
ClassicScope
public class ClassicScope extends CrawlScope (Code)
ClassicScope: superclass with shared Scope behavior for most common scopes. Roughly, its logic is captured in innerAccept(). A URI is included if:
 forceAccepts(uri)
 || (((isSeed(uri) 
 || focusAccepts(uri)) 
 || additionalFocusAccepts(uri) 
 || transitiveAccepts(uri))
 && !excludeAccepts(uri));
Subclasses should override focusAccepts, additionalFocusAccepts, and transitiveAccepts. The excludeFilter may be specified by supplying a exclude subelement. If unspecified, a accepts-none filter will be used -- meaning that no URIs will pass the filter and thus be excluded.
author:
   gojomo


Field Summary
final public static  StringATTR_EXCLUDE_FILTER
    
final public static  StringATTR_FORCE_ACCEPT_FILTER
    
final public static  StringATTR_MAX_LINK_HOPS
    
final public static  StringATTR_MAX_TRANS_HOPS
    

Constructor Summary
public  ClassicScope(String name)
    
public  ClassicScope()
     Default constructor.

Method Summary
protected  booleanadditionalFocusAccepts(Object o)
     Check if URI is accepted by the additional focus of this scope. This method should be overridden in subclasses.
Parameters:
  o - the URI to check.
protected  booleanexceedsMaxHops(Object o)
     Check if there are too many hops
Parameters:
  o - URI to check.
protected  booleanexcludeAccepts(Object o)
     Check if URI is excluded by any filters.
Parameters:
  o - the URI to check.
protected  booleanfocusAccepts(Object o)
     Check if URI is accepted by the focus of this scope. This method should be overridden in subclasses.
Parameters:
  o - the URI to check.
protected  booleanforceAccepts(Object o)
    
Parameters:
  o - the URI to check.
final protected  booleaninnerAccepts(Object o)
     Returns whether the given object (typically a CandidateURI) falls within this scope.
Parameters:
  o - Object to test.
public  voidkickUpdate()
     Take note of a situation (such as settings edit) where involved reconfiguration (such as reading from external files) may be necessary.
protected  booleantransitiveAccepts(Object o)
    
Parameters:
  o - the URI to check.

Field Detail
ATTR_EXCLUDE_FILTER
final public static String ATTR_EXCLUDE_FILTER(Code)



ATTR_FORCE_ACCEPT_FILTER
final public static String ATTR_FORCE_ACCEPT_FILTER(Code)



ATTR_MAX_LINK_HOPS
final public static String ATTR_MAX_LINK_HOPS(Code)



ATTR_MAX_TRANS_HOPS
final public static String ATTR_MAX_TRANS_HOPS(Code)




Constructor Detail
ClassicScope
public ClassicScope(String name)(Code)

Parameters:
  name - ignored by superclass



ClassicScope
public ClassicScope()(Code)
Default constructor.




Method Detail
additionalFocusAccepts
protected boolean additionalFocusAccepts(Object o)(Code)
Check if URI is accepted by the additional focus of this scope. This method should be overridden in subclasses.
Parameters:
  o - the URI to check. True if additional focus filter accepts passed object.



exceedsMaxHops
protected boolean exceedsMaxHops(Object o)(Code)
Check if there are too many hops
Parameters:
  o - URI to check. true if too many hops.



excludeAccepts
protected boolean excludeAccepts(Object o)(Code)
Check if URI is excluded by any filters.
Parameters:
  o - the URI to check. True if exclude filter accepts passed object.



focusAccepts
protected boolean focusAccepts(Object o)(Code)
Check if URI is accepted by the focus of this scope. This method should be overridden in subclasses.
Parameters:
  o - the URI to check. True if focus filter accepts passed object.



forceAccepts
protected boolean forceAccepts(Object o)(Code)

Parameters:
  o - the URI to check. True if force-accepts filter accepts passed object.



innerAccepts
final protected boolean innerAccepts(Object o)(Code)
Returns whether the given object (typically a CandidateURI) falls within this scope.
Parameters:
  o - Object to test. Whether the given object (typically a CandidateURI) falls withinthis scope.



kickUpdate
public void kickUpdate()(Code)
Take note of a situation (such as settings edit) where involved reconfiguration (such as reading from external files) may be necessary.



transitiveAccepts
protected boolean transitiveAccepts(Object o)(Code)

Parameters:
  o - the URI to check. True if transitive filter accepts passed object.



Fields inherited from org.archive.crawler.framework.CrawlScope
final public static String ATTR_NAME(Code)(Java Doc)
final public static String ATTR_REREAD_SEEDS_ON_CONFIG(Code)(Java Doc)
final public static String ATTR_SEEDS(Code)(Java Doc)
final public static Boolean DEFAULT_REREAD_SEEDS_ON_CONFIG(Code)(Java Doc)
protected Set<SeedListener> seedListeners(Code)(Java Doc)

Methods inherited from org.archive.crawler.framework.CrawlScope
public boolean addSeed(CandidateURI curi)(Code)(Java Doc)
public void addSeedListener(SeedListener sl)(Code)(Java Doc)
protected void checkClose(Iterator iter)(Code)(Java Doc)
public File getSeedfile()(Code)(Java Doc)
public void initialize(CrawlController controller)(Code)(Java Doc)
protected boolean isSameHost(UURI a, UURI b)(Code)(Java Doc)
protected boolean isSeed(Object o)(Code)(Java Doc)
public void kickUpdate()(Code)(Java Doc)
public void listUsedFiles(List<String> list)(Code)(Java Doc)
public void refreshSeeds()(Code)(Java Doc)
public Iterator<UURI> seedsIterator()(Code)(Java Doc)
public Iterator<UURI> seedsIterator(Writer ignoredItemWriter)(Code)(Java Doc)
public String toString()(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.