public abstract class AbstractResourceResolver extends java.lang.Object implements ResourceResolver
ResourceResolver
implementations. Provides consistent logging.| Constructor and Description |
|---|
AbstractResourceResolver() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
resolveResource(HttpServletRequest request,
java.lang.String requestPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain)
Resolve the supplied request and request path to a
Resource that
exists under one of the given resource locations. |
protected abstract Resource |
resolveResourceInternal(HttpServletRequest request,
java.lang.String requestPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain) |
java.lang.String |
resolveUrlPath(java.lang.String resourceUrlPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain)
Resolve the externally facing public URL path for clients to use
to access the resource that is located at the given internal
resource path.
|
protected abstract java.lang.String |
resolveUrlPathInternal(java.lang.String resourceUrlPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain) |
protected final Log logger
public Resource resolveResource(HttpServletRequest request, java.lang.String requestPath, java.util.List<? extends Resource> locations, ResourceResolverChain chain)
ResourceResolverResource that
exists under one of the given resource locations.resolveResource in interface ResourceResolverrequest - the current requestrequestPath - the portion of the request path to uselocations - the locations to search in when looking up resourceschain - the chain of remaining resolvers to delegate tonull if unresolvedpublic java.lang.String resolveUrlPath(java.lang.String resourceUrlPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain)
ResourceResolverThis is useful when rendering URL links to clients.
resolveUrlPath in interface ResourceResolverresourceUrlPath - the internal resource pathlocations - the locations to search in when looking up resourceschain - the chain of resolvers to delegate tonull if unresolvedprotected abstract Resource resolveResourceInternal(HttpServletRequest request, java.lang.String requestPath, java.util.List<? extends Resource> locations, ResourceResolverChain chain)
protected abstract java.lang.String resolveUrlPathInternal(java.lang.String resourceUrlPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain)