org.riotfamily.riot.resource
Class AbstractPathMatchingResourceFilter

java.lang.Object
  extended by org.riotfamily.riot.resource.AbstractPathMatchingResourceFilter
All Implemented Interfaces:
ResourceFilter
Direct Known Subclasses:
MessageResourceFilter, PropertyResourceFilter

public abstract class AbstractPathMatchingResourceFilter
extends Object
implements ResourceFilter


Constructor Summary
AbstractPathMatchingResourceFilter()
           
 
Method Summary
 boolean matches(String path)
          Returns whether the filter should be applied to the resource denoted by the given path.
 void setMatch(String match)
           
 void setMatches(String[] matches)
           
 void setPathMatcher(PathMatcher pathMatcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.riotfamily.riot.resource.ResourceFilter
createFilterReader
 

Constructor Detail

AbstractPathMatchingResourceFilter

public AbstractPathMatchingResourceFilter()
Method Detail

setMatch

public void setMatch(String match)

setMatches

public void setMatches(String[] matches)

setPathMatcher

public void setPathMatcher(PathMatcher pathMatcher)

matches

public boolean matches(String path)
Description copied from interface: ResourceFilter
Returns whether the filter should be applied to the resource denoted by the given path.

Specified by:
matches in interface ResourceFilter