org.apache.shale.remoting.impl
Class FilteringProcessor

java.lang.Object
  extended by org.apache.shale.remoting.impl.FilteringProcessor
All Implemented Interfaces:
Processor
Direct Known Subclasses:
AbstractResourceProcessor, MethodBindingProcessor

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.

Since:
1.0.4

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

FilteringProcessor

public FilteringProcessor()
Method Detail

getExcludes

public String getExcludes()

Return the comma-delimited regular expresson patterns to exclude remote host names that match, if any; otherwise, return null.


setExcludes

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.

Parameters:
excludes - New exclude pattern(s)

getIncludes

public String getIncludes()

Return the comma-delimited regular expresson patterns to include remote host names that match, if any; otherwise, return null.


setIncludes

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.

Parameters:
includes - New include pattern(s)

accept

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).

Parameters:
resourceId - Resource identifier to validate


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.