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


org.archive.crawler.settings.ComplexType
   org.archive.crawler.settings.ModuleType
      org.archive.crawler.framework.Filter

All known Subclasses:   org.archive.crawler.filter.SurtPrefixFilter,  org.archive.crawler.framework.CrawlScope,  org.archive.crawler.filter.HTTPMidFetchUnchangedFilter,  org.archive.crawler.filter.TransclusionFilter,  org.archive.crawler.filter.PathDepthFilter,  org.archive.crawler.deciderules.DecidingFilter,  org.archive.crawler.filter.URIListRegExpFilter,  org.archive.crawler.filter.OrFilter,  org.archive.crawler.filter.URIRegExpFilter,  org.archive.crawler.filter.HopsFilter,
Filter
public class Filter extends ModuleType (Code)
Base class for filter classes.

Several classes allow 'filters' to be applied to them. Filters are classes that, based on an arbitrary object passed to them, return a boolean stating if if passes the filter. Thus applying filters can affect the behavior of those classes. This class provides the basic framework for filters. All detailed implementation of filters inherit from it and it is considered to be a 'null' filter (always returns true).
author:
   Gordon Mohr
See Also:   org.archive.crawler.framework.Processor



Field Summary
final public static  StringATTR_ENABLED
    

Constructor Summary
public  Filter(String name, String description)
     Creates a new 'null' filter.
public  Filter(String name)
     Creates a new 'null' filter.

Method Summary
public  booleanaccepts(Object o)
    
protected  booleangetFilterOffPosition(CrawlURI curi)
     If the filter is disabled, the value returned by this method is what filters return as their disabled setting. Default is that we return 'true', continue processing, but some filters -- the exclude filters for example -- will want to return false if disabled so processing can continue.
Parameters:
  curi - CrawlURI to use as context.
protected  booleaninnerAccepts(Object o)
     Classes subclassing this one should override this method to perfrom their custom determination of whether or not the object given to it.
public  voidkickUpdate()
    
protected  booleanreturnTrueIfMatches(CrawlURI curi)
     Checks to see if filter functionality should be inverted for this curi.

All filters will by default return true if curi is accepted by the filter.

public  StringtoString()
    

Field Detail
ATTR_ENABLED
final public static String ATTR_ENABLED(Code)




Constructor Detail
Filter
public Filter(String name, String description)(Code)
Creates a new 'null' filter.
Parameters:
  name - the name of the filter.
Parameters:
  description - an description of the filter suitable for showing inthe user interface.



Filter
public Filter(String name)(Code)
Creates a new 'null' filter.
Parameters:
  name - the name of the filter.




Method Detail
accepts
public boolean accepts(Object o)(Code)



getFilterOffPosition
protected boolean getFilterOffPosition(CrawlURI curi)(Code)
If the filter is disabled, the value returned by this method is what filters return as their disabled setting. Default is that we return 'true', continue processing, but some filters -- the exclude filters for example -- will want to return false if disabled so processing can continue.
Parameters:
  curi - CrawlURI to use as context. Passed curi can be null. This filters 'off' position.



innerAccepts
protected boolean innerAccepts(Object o)(Code)
Classes subclassing this one should override this method to perfrom their custom determination of whether or not the object given to it.
Parameters:
  o - The object True if it passes the filter.



kickUpdate
public void kickUpdate()(Code)



returnTrueIfMatches
protected boolean returnTrueIfMatches(CrawlURI curi)(Code)
Checks to see if filter functionality should be inverted for this curi.

All filters will by default return true if curi is accepted by the filter. If this method returns false, then the filter will return true if doesn't match.

Classes extending this class should override this method with appropriate code.
Parameters:
  curi - Current CrawlURI true for default behaviour, false otherwise.




toString
public String toString()(Code)



Methods inherited from org.archive.crawler.settings.ModuleType
public Type addElement(CrawlerSettings settings, Type type) throws InvalidAttributeValueException(Code)(Java Doc)
protected void listUsedFiles(List<String> list)(Code)(Java Doc)

Fields inherited from org.archive.crawler.settings.ComplexType
final protected List<Type> definition(Code)(Java Doc)
final protected Map<String, Type> definitionMap(Code)(Java Doc)

Methods inherited from org.archive.crawler.settings.ComplexType
public Type addElement(CrawlerSettings settings, Type type) throws InvalidAttributeValueException(Code)(Java Doc)
public Type addElementToDefinition(Type type)(Code)(Java Doc)
public FailedCheck checkValue(CrawlerSettings settings, String attributeName, Object value)(Code)(Java Doc)
public void earlyInitialize(CrawlerSettings settings)(Code)(Java Doc)
public String getAbsoluteName()(Code)(Java Doc)
public Object getAttribute(String name) throws AttributeNotFoundException, MBeanException, ReflectionException(Code)(Java Doc)
public Object getAttribute(String name, CrawlURI uri) throws AttributeNotFoundException(Code)(Java Doc)
public Object getAttribute(Object context, String name) throws AttributeNotFoundException(Code)(Java Doc)
public MBeanAttributeInfo getAttributeInfo(CrawlerSettings settings, String name)(Code)(Java Doc)
public MBeanAttributeInfo getAttributeInfo(String name)(Code)(Java Doc)
public MBeanAttributeInfoIterator getAttributeInfoIterator(Object context)(Code)(Java Doc)
public AttributeList getAttributes(String[] name)(Code)(Java Doc)
protected DataContainer getDataContainerRecursive(Context context)(Code)(Java Doc)
protected DataContainer getDataContainerRecursive(Context context, String key) throws AttributeNotFoundException(Code)(Java Doc)
public Object getDefaultValue()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public Type getElementFromDefinition(String name)(Code)(Java Doc)
public Object[] getLegalValues()(Code)(Java Doc)
public Object getLocalAttribute(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)(Java Doc)
public MBeanInfo getMBeanInfo()(Code)(Java Doc)
public MBeanInfo getMBeanInfo(Object context)(Code)(Java Doc)
public ComplexType getParent()(Code)(Java Doc)
protected String[] getPreservedFields()(Code)(Java Doc)
public SettingsHandler getSettingsHandler()(Code)(Java Doc)
public Object getUncheckedAttribute(Object context, String name)(Code)(Java Doc)
public Object getValue()(Code)(Java Doc)
public CrawlerSettings globalSettings()(Code)(Java Doc)
public Object invoke(String arg0, Object[] arg1, String[] arg2) throws MBeanException, ReflectionException(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public boolean isOverridden(CrawlerSettings settings, String name) throws AttributeNotFoundException(Code)(Java Doc)
public Iterator iterator(Object context)(Code)(Java Doc)
protected Type removeElementFromDefinition(String name)(Code)(Java Doc)
protected void setAsOrder(SettingsHandler settingsHandler) throws InvalidAttributeValueException(Code)(Java Doc)
final public synchronized void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException(Code)(Java Doc)
final public synchronized void setAttribute(CrawlerSettings settings, Attribute attribute) throws InvalidAttributeValueException, AttributeNotFoundException(Code)(Java Doc)
public AttributeList setAttributes(AttributeList attributes)(Code)(Java Doc)
public void setDescription(String string)(Code)(Java Doc)
protected void setPreservedFields(String[] preservedFields)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public Object unsetAttribute(CrawlerSettings settings, String name) throws AttributeNotFoundException(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.