org.archive.crawler.scope
Class RefinedScope

java.lang.Object
  extended by javax.management.Attribute
      extended by org.archive.crawler.settings.Type
          extended by org.archive.crawler.settings.ComplexType
              extended by org.archive.crawler.settings.ModuleType
                  extended by org.archive.crawler.framework.Filter
                      extended by org.archive.crawler.framework.CrawlScope
                          extended by org.archive.crawler.scope.ClassicScope
                              extended by org.archive.crawler.scope.RefinedScope
All Implemented Interfaces:
java.io.Serializable, javax.management.DynamicMBean
Direct Known Subclasses:
SurtPrefixScope

public abstract class RefinedScope
extends ClassicScope

Superclass for Scopes which make use of "additional focus" to add items by pattern, or want to swap in alternative transitive filter.

Author:
gojomo
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.archive.crawler.settings.ComplexType
ComplexType.MBeanAttributeInfoIterator
 
Field Summary
(package private)  Filter additionalFocusFilter
           
static java.lang.String ATTR_ADDITIONAL_FOCUS_FILTER
           
static java.lang.String ATTR_TRANSITIVE_FILTER
           
(package private)  Filter transitiveFilter
           
 
Fields inherited from class org.archive.crawler.scope.ClassicScope
ATTR_EXCLUDE_FILTER, ATTR_MAX_LINK_HOPS, ATTR_MAX_TRANS_HOPS
 
Fields inherited from class org.archive.crawler.framework.CrawlScope
ATTR_NAME, ATTR_REREAD_SEEDS_ON_CONFIG, ATTR_SEEDS, DEFAULT_REREAD_SEEDS_ON_CONFIG, seedListeners
 
Fields inherited from class org.archive.crawler.framework.Filter
ATTR_ENABLED
 
Fields inherited from class org.archive.crawler.settings.ComplexType
definition, definitionMap
 
Constructor Summary
RefinedScope(java.lang.String name)
           
 
Method Summary
protected  boolean additionalFocusAccepts(java.lang.Object o)
          Check if URI is accepted by the additional focus of this scope.
protected  boolean transitiveAccepts(java.lang.Object o)
           
 
Methods inherited from class org.archive.crawler.scope.ClassicScope
exceedsMaxHops, excludeAccepts, focusAccepts, innerAccepts, kickUpdate, xforceAccepts
 
Methods inherited from class org.archive.crawler.framework.CrawlScope
addSeed, addSeedListener, checkClose, getSeedfile, initialize, isSameHost, isSeed, listUsedFiles, refreshSeeds, seedsIterator, seedsIterator, toString
 
Methods inherited from class org.archive.crawler.framework.Filter
accepts, getFilterOffPosition, returnTrueIfMatches
 
Methods inherited from class org.archive.crawler.settings.ModuleType
addElement
 
Methods inherited from class org.archive.crawler.settings.ComplexType
addElementToDefinition, checkValue, earlyInitialize, getAbsoluteName, getAttribute, getAttribute, getAttribute, getAttributeInfo, getAttributeInfo, getAttributeInfoIterator, getAttributes, getDataContainerRecursive, getDataContainerRecursive, getDefaultValue, getDescription, getElementFromDefinition, getLegalValues, getLocalAttribute, getMBeanInfo, getMBeanInfo, getParent, getPreservedFields, getSettingsHandler, getUncheckedAttribute, getValue, globalSettings, invoke, isInitialized, isOverridden, iterator, removeElementFromDefinition, setAsOrder, setAttribute, setAttribute, setAttributes, setDescription, setPreservedFields, unsetAttribute
 
Methods inherited from class org.archive.crawler.settings.Type
addConstraint, equals, getConstraints, getLegalValueType, isExpertSetting, isOverrideable, isTransient, setExpertSetting, setLegalValueType, setOverrideable, setTransient
 
Methods inherited from class javax.management.Attribute
getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTR_TRANSITIVE_FILTER

public static final java.lang.String ATTR_TRANSITIVE_FILTER
See Also:
Constant Field Values

ATTR_ADDITIONAL_FOCUS_FILTER

public static final java.lang.String ATTR_ADDITIONAL_FOCUS_FILTER
See Also:
Constant Field Values

additionalFocusFilter

Filter additionalFocusFilter

transitiveFilter

Filter transitiveFilter
Constructor Detail

RefinedScope

public RefinedScope(java.lang.String name)
Method Detail

transitiveAccepts

protected boolean transitiveAccepts(java.lang.Object o)
Overrides:
transitiveAccepts in class ClassicScope
Parameters:
o -
Returns:
True if transitive filter accepts passed object.

additionalFocusAccepts

protected boolean additionalFocusAccepts(java.lang.Object o)
Description copied from class: ClassicScope
Check if URI is accepted by the additional focus of this scope. This method should be overridden in subclasses.

Overrides:
additionalFocusAccepts in class ClassicScope
Parameters:
o - the URI to check.
Returns:
True if additional focus filter accepts passed object.


Copyright © 2003-2011 Internet Archive. All Rights Reserved.