| java.lang.Object | ||
| ↳ | org.springframework.core.io.support.PathMatchingResourcePatternResolver | |
| ↳ | org.springframework.web.context.support.ServletContextResourcePatternResolver | |
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.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.io.ResourceLoader
| |||||||||||
From interface
org.springframework.core.io.support.ResourcePatternResolver
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new ServletContextResourcePatternResolver.
| |||||||||||
Create a new ServletContextResourcePatternResolver.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Overridden version which checks for ServletContextResource
and uses
ServletContext.getResourcePaths to find
matching resources below the web application root directory. | |||||||||||
Recursively retrieve ServletContextResources that match the given pattern,
adding them to the given result set.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.io.support.PathMatchingResourcePatternResolver
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.io.ResourceLoader
| |||||||||||
From interface
org.springframework.core.io.support.ResourcePatternResolver
| |||||||||||
Create a new ServletContextResourcePatternResolver.
| servletContext | the ServletContext to load resources with |
|---|
Create a new ServletContextResourcePatternResolver.
| resourceLoader | the ResourceLoader to load root directories and actual resources with |
|---|
Overridden version which checks for ServletContextResource
and uses ServletContext.getResourcePaths to find
matching resources below the web application root directory.
In case of other resources, delegates to the superclass version.
| rootDirResource | the root directory as Resource |
|---|---|
| subPattern | the sub pattern to match (below the root directory) |
| IOException |
|---|
Recursively retrieve ServletContextResources that match the given pattern, adding them to the given result set.
| servletContext | the ServletContext to work on |
|---|---|
| fullPattern | the pattern to match against, with preprended root directory path |
| dir | the current directory |
| result | the Set of matching Resources to add to |
| IOException | if directory contents could not be retrieved |
|---|