| java.lang.Object org.springframework.core.io.support.PathMatchingResourcePatternResolver org.springframework.web.context.support.ServletContextResourcePatternResolver
ServletContextResourcePatternResolver | public class ServletContextResourcePatternResolver extends PathMatchingResourcePatternResolver (Code) | | ServletContext-aware subclass of PathMatchingResourcePatternResolver,
able to find matching resources below the web application root directory
via Servlet 2.3's ServletContext.getResourcePaths .
Falls back to the superclass' file system checking for other resources.
The advantage of using ServletContext.getResourcePaths to
find matching files is that it will work in a WAR file which has not been
expanded too. For Servlet containers that do not support Servlet 2.3 or
above, this resolver will always fall back to file system checking,
which requires an expanded WAR file.
author: Juergen Hoeller since: 1.1.2 |
ServletContextResourcePatternResolver | public ServletContextResourcePatternResolver(ResourceLoader resourceLoader)(Code) | | Create a new ServletContextResourcePatternResolver.
Parameters: resourceLoader - the ResourceLoader to load root directories andactual resources with |
doRetrieveMatchingServletContextResources | protected void doRetrieveMatchingServletContextResources(ServletContext servletContext, String fullPattern, String dir, Set result) throws IOException(Code) | | Recursively retrieve ServletContextResources that match the given pattern,
adding them to the given result set.
Parameters: servletContext - the ServletContext to work on Parameters: fullPattern - the pattern to match against,with preprended root directory path Parameters: dir - the current directory Parameters: result - the Set of matching Resources to add to throws: IOException - if directory contents could not be retrieved See Also: ServletContextResource See Also: javax.servlet.ServletContext.getResourcePaths |
Fields inherited from org.springframework.core.io.support.PathMatchingResourcePatternResolver | final protected Log logger(Code)(Java Doc)
|
|
|