|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.remoting.impl.FilteringProcessor
public abstract class FilteringProcessor
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 Summary | |
---|---|
FilteringProcessor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.shale.remoting.Processor |
---|
process |
Constructor Detail |
---|
public FilteringProcessor()
Method Detail |
---|
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 validate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |