org.eclipse.smila.connectivity.framework.crawler.web.filter.impl
Class ContentTypeFilter
java.lang.Object
org.eclipse.smila.connectivity.framework.crawler.web.filter.WorkTypeFilter<java.lang.String>
org.eclipse.smila.connectivity.framework.crawler.web.filter.impl.ContentTypeFilter
- All Implemented Interfaces:
- IFilter<java.lang.String>
public class ContentTypeFilter
- extends WorkTypeFilter<java.lang.String>
Implementation of the filter that filters content type on a regular expression.
|
Method Summary |
java.lang.String |
getValue()
Returns the filter value. |
boolean |
matches(java.lang.String test)
Returns true if the value of the parameter satisfies the filter and false otherwise. |
void |
setValue(java.lang.String value)
Assigns the filter value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentTypeFilter
public ContentTypeFilter()
- Default empty constructor.
getValue
public java.lang.String getValue()
- Returns the filter value.
- Returns:
- String
setValue
public void setValue(java.lang.String value)
- Assigns the filter value.
- Parameters:
value - String
matches
public boolean matches(java.lang.String test)
- Returns true if the value of the parameter satisfies the filter and false otherwise.
- Parameters:
test - value that will be checked against the filter.
- Returns:
- filter result