public abstract class AbstractResourceResolver extends java.lang.Object implements ResourceResolver
ResourceResolver
providing consistent logging.Modifier and Type | Field and Description |
---|---|
protected Log |
logger |
Constructor and Description |
---|
AbstractResourceResolver() |
Modifier and Type | Method and Description |
---|---|
<any> |
resolveResource(ServerWebExchange exchange,
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 <any> |
resolveResourceInternal(ServerWebExchange exchange,
java.lang.String requestPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain) |
<any> |
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 <any> |
resolveUrlPathInternal(java.lang.String resourceUrlPath,
java.util.List<? extends Resource> locations,
ResourceResolverChain chain) |
public <any> resolveResource(ServerWebExchange exchange, java.lang.String requestPath, java.util.List<? extends Resource> locations, ResourceResolverChain chain)
ResourceResolver
Resource
that
exists under one of the given resource locations.resolveResource
in interface ResourceResolver
exchange
- the current exchangerequestPath
- the portion of the request path to uselocations
- the locations to search in when looking up resourceschain
- the chain of remaining resolvers to delegate toMono
if unresolvedpublic <any> resolveUrlPath(java.lang.String resourceUrlPath, java.util.List<? extends Resource> locations, ResourceResolverChain chain)
ResourceResolver
This is useful when rendering URL links to clients.
resolveUrlPath
in interface ResourceResolver
resourceUrlPath
- the internal resource pathlocations
- the locations to search in when looking up resourceschain
- the chain of resolvers to delegate toMono
if unresolvedprotected abstract <any> resolveResourceInternal(ServerWebExchange exchange, java.lang.String requestPath, java.util.List<? extends Resource> locations, ResourceResolverChain chain)
protected abstract <any> resolveUrlPathInternal(java.lang.String resourceUrlPath, java.util.List<? extends Resource> locations, ResourceResolverChain chain)