| java.lang.Object org.springframework.core.io.support.PathMatchingResourcePatternResolver org.springframework.web.portlet.context.PortletContextResourcePatternResolver
PortletContextResourcePatternResolver | public class PortletContextResourcePatternResolver extends PathMatchingResourcePatternResolver (Code) | | PortletContext-aware subclass of PathMatchingResourcePatternResolver,
able to find matching resources below the web application root directory
via Portlet API's PortletContext.getResourcePaths .
Falls back to the superclass' file system checking for other resources.
The advantage of using PortletContext.getResourcePaths to
find matching files is that it will work in a WAR file which has not been
expanded too.
author: Juergen Hoeller author: John A. Lewis since: 2.0 |
PortletContextResourcePatternResolver | public PortletContextResourcePatternResolver(ResourceLoader resourceLoader)(Code) | | Create a new PortletContextResourcePatternResolver.
Parameters: resourceLoader - the ResourceLoader to load root directories andactual resources with |
doRetrieveMatchingPortletContextResources | protected void doRetrieveMatchingPortletContextResources(PortletContext portletContext, String fullPattern, String dir, Set result) throws IOException(Code) | | Recursively retrieve PortletContextResources that match the given pattern,
adding them to the given result set.
Parameters: portletContext - the PortletContext 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: org.springframework.web.portlet.context.PortletContextResource See Also: javax.portlet.PortletContext.getResourcePaths |
Fields inherited from org.springframework.core.io.support.PathMatchingResourcePatternResolver | final protected Log logger(Code)(Java Doc)
|
|
|