public abstract class FilteringProcessor extends Object implements Processor
Abstract base class for Processor implementations that filter
requests based on matching the resource identifier against a set of
includes and excludes regular expressions.
| Constructor and Description |
|---|
FilteringProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(String resourceId)
Return
true if we should accept a request for the
specified resource identifier, based upon our configured includes
and excludes patterns (if any). |
String |
getExcludes()
Return the comma-delimited regular expresson patterns to exclude
remote host names that match, if any; otherwise, return
null. |
String |
getIncludes()
Return the comma-delimited regular expresson patterns to include
remote host names that match, if any; otherwise, return
null. |
void |
setExcludes(String excludes)
Set the comma-delimited regular expression patterns to exclude
remote host names that match, if any; or
null for no
restrictions. |
void |
setIncludes(String includes)
Set the comma-delimited regular expression patterns to include
remote host names that match, if any; or
null for no
restrictions. |
public String getExcludes()
Return the comma-delimited regular expresson patterns to exclude
remote host names that match, if any; otherwise, return
null.
public void setExcludes(String excludes)
Set the comma-delimited regular expression patterns to exclude
remote host names that match, if any; or null for no
restrictions.
excludes - New exclude pattern(s)public String getIncludes()
Return the comma-delimited regular expresson patterns to include
remote host names that match, if any; otherwise, return
null.
public void setIncludes(String includes)
Set the comma-delimited regular expression patterns to include
remote host names that match, if any; or null for no
restrictions.
includes - New include pattern(s)protected boolean accept(String resourceId)
Return true if we should accept a request for the
specified resource identifier, based upon our configured includes
and excludes patterns (if any).
resourceId - Resource identifier to validateCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.