public class SingleResourceResolver extends java.lang.Object implements ResourceResolver
Resource,
ResourceResolver| Constructor and Description |
|---|
SingleResourceResolver(org.springframework.core.io.Resource resource)
Constructs a new instance of
SingleResourceResolver initialized with the given Resource. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<org.springframework.core.io.Resource> |
resolve(java.lang.String location)
Tries to resolve a
Resource handle from the given, non-null location
(e.g. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassLoader, requirepublic SingleResourceResolver(@Nullable
org.springframework.core.io.Resource resource)
SingleResourceResolver initialized with the given Resource.resource - the single Resource consistently resolved by this resolver.Resourcepublic java.util.Optional<org.springframework.core.io.Resource> resolve(@NonNull
java.lang.String location)
ResourceResolverResource handle from the given, non-null location
(e.g. filesystem path).resolve in interface ResourceResolverlocation - location identifying the Resource to resolve;
must not be null.Optional Resource handle for the given location.Resource,
Optional