Provides mechanisms for resolving an incoming request to an actual
org. and for obtaining the
public URL path that clients should use when requesting the resource.
org.springframework.web.servlet.resource.ResourceResolverChain
| Modifier and Type | Method and Description |
|---|---|
| public Resource | Returns: the resolved resource, ornull if unresolvedthe current request (may not be present in some calls) request, String the portion of the request path to use requestPath, List<? extends Resource> the locations to search in when looking up resources locations, ResourceResolverChain the chain of remaining resolvers to delegate to chain)Resolve the supplied request and request path to a |
| public String | Returns: the resolved public URL path, ornull if unresolvedthe internal resource path resourcePath, List<? extends Resource> the locations to search in when looking up resources locations, ResourceResolverChain the chain of resolvers to delegate to 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. |
| resolveResource | back to summary |
|---|---|
| public Resource resolveResource(HttpServletRequest request, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) Resolve the supplied request and request path to a
| |
| resolveUrlPath | back to summary |
|---|---|
| public String resolveUrlPath(String resourcePath, 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. This is useful when rendering URL links to clients. | |