org.archive.crawler.filter
Class ContentTypeRegExpFilter
java.lang.Object
javax.management.Attribute
org.archive.crawler.settings.Type
org.archive.crawler.settings.ComplexType
org.archive.crawler.settings.ModuleType
org.archive.crawler.framework.Filter
org.archive.crawler.filter.URIRegExpFilter
org.archive.crawler.filter.ContentTypeRegExpFilter
- All Implemented Interfaces:
- java.io.Serializable, javax.management.DynamicMBean
Deprecated. As of release 1.10.0. To be replaced by an equivalent
DecideRule
.
public class ContentTypeRegExpFilter
- extends URIRegExpFilter
Compares the content-type of the passed CrawlURI to a regular expression.
- Version:
- $Date: 2006-09-25 18:41:10 +0000 (Mon, 25 Sep 2006) $, $Revision: 4652 $
- Author:
- Tom Emerson
- See Also:
- Serialized Form
Method Summary |
protected boolean |
innerAccepts(java.lang.Object o)
Deprecated. Classes subclassing this one should override this method to perfrom
their custom determination of whether or not the object given to it. |
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 |
ContentTypeRegExpFilter
public ContentTypeRegExpFilter(java.lang.String name)
- Deprecated.
- Parameters:
name
- Filter name.
ContentTypeRegExpFilter
public ContentTypeRegExpFilter(java.lang.String name,
java.lang.String regexp)
- Deprecated.
innerAccepts
protected boolean innerAccepts(java.lang.Object o)
- Deprecated.
- Description copied from class:
Filter
- Classes subclassing this one should override this method to perfrom
their custom determination of whether or not the object given to it.
- Overrides:
innerAccepts
in class URIRegExpFilter
- Parameters:
o
- The object
- Returns:
- True if it passes the filter.
Copyright © 2003-2011 Internet Archive. All Rights Reserved.