org.alfresco.config
Interface PathMatchingHelper


public interface PathMatchingHelper

An interface for plug ins to JBossEnabledResourcePatternResolver that avoids direct dependencies on application server specifics.


Method Summary
 boolean canHandle(java.net.URL rootURL)
          Indicates whether this helper is capable of searching the given URL (i.e.
 org.springframework.core.io.Resource getResource(java.net.URL url)
          Gets the resource at the given URL.
 java.util.Set getResources(org.springframework.util.PathMatcher matcher, java.net.URL rootURL, java.lang.String subPattern)
          Gets the set of resources under the given URL whose path matches the given sub pattern.
 

Method Detail

canHandle

boolean canHandle(java.net.URL rootURL)
Indicates whether this helper is capable of searching the given URL (i.e. its protocol is supported).

Parameters:
rootURL - the root url to be searched
Returns:
true if this helper is capable of searching the given URL

getResource

org.springframework.core.io.Resource getResource(java.net.URL url)
                                                 throws java.io.IOException
Gets the resource at the given URL.

Parameters:
url -
Returns:
the resource at the given URL
Throws:
java.io.IOException - for any error

getResources

java.util.Set getResources(org.springframework.util.PathMatcher matcher,
                           java.net.URL rootURL,
                           java.lang.String subPattern)
                           throws java.io.IOException
Gets the set of resources under the given URL whose path matches the given sub pattern.

Parameters:
matcher - the matcher
rootURL - the root URL to be searched
subPattern - the ant-style pattern to match
Returns:
the set of matching resources
Throws:
java.io.IOException - for any error


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.