org.riotfamily.riot.resource
Interface ResourceFilter

All Known Implementing Classes:
AbstractPathMatchingResourceFilter, MessageResourceFilter, PropertyResourceFilter

public interface ResourceFilter

Interface that allows to filter resources that are served by a ResourceController.

See Also:
AbstractResourceController.setFilters(java.util.List)

Method Summary
 FilterReader createFilterReader(Reader in, HttpServletRequest request)
          Returns a FilterReader that does the actual filtering.
 boolean matches(String path)
          Returns whether the filter should be applied to the resource denoted by the given path.
 

Method Detail

matches

boolean matches(String path)
Returns whether the filter should be applied to the resource denoted by the given path.


createFilterReader

FilterReader createFilterReader(Reader in,
                                HttpServletRequest request)
Returns a FilterReader that does the actual filtering.