org.apache.tapestry.asset
Interface ResourceMatcher

All Known Implementing Classes:
ResourceMatcherImpl

public interface ResourceMatcher

Responsible for determining if the path string of a Resource - typically involving IAsset resources being examined by the AssetService - match the configured resource match strings of this service.

Currently used by AssetService to enable having unprotected resources based off of regexp patterns.

Author:
jkuhnert

Method Summary
 boolean containsResource(String path)
          Checks for the existance of a resource pattern that matches the incoming path string.
 

Method Detail

containsResource

boolean containsResource(String path)
Checks for the existance of a resource pattern that matches the incoming path string.

Parameters:
path - The path to a resource
Returns:
True if the path is matched against one of the patterns configured for this matcher, false otherwise.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.