public interface ResourceResolverChain
ResourceResolver
s where each resolver
is given a reference to the chain allowing it to delegate when necessary.Modifier and Type | Method and Description |
---|---|
Resource |
resolveResource(HttpServletRequest request,
java.lang.String requestPath,
java.util.List<? extends Resource> locations)
Resolve the supplied request and request path to a
Resource that
exists under one of the given resource locations. |
java.lang.String |
resolveUrlPath(java.lang.String resourcePath,
java.util.List<? extends Resource> locations)
Resolve the externally facing public URL path for clients to use
to access the resource that is located at the given internal
resource path.
|
Resource resolveResource(HttpServletRequest request, java.lang.String requestPath, java.util.List<? extends Resource> locations)
Resource
that
exists under one of the given resource locations.request
- the current requestrequestPath
- the portion of the request path to uselocations
- the locations to search in when looking up resourcesnull
if unresolvedjava.lang.String resolveUrlPath(java.lang.String resourcePath, java.util.List<? extends Resource> locations)
This is useful when rendering URL links to clients.
resourcePath
- the internal resource pathlocations
- the locations to search in when looking up resourcesnull
if unresolved