spring-framework / org.springframework.web.reactive.resource / ResourceResolverChain / resolveResource

resolveResource

abstract fun resolveResource(@Nullable exchange: ServerWebExchange, requestPath: String, locations: MutableList<out Resource>): Mono<Resource>

Resolve the supplied request and request path to a Resource that exists under one of the given resource locations.

Parameters

exchange - the current exchange

requestPath - the portion of the request path to use

locations - the locations to search in when looking up resources

Return
the resolved resource; or an empty Mono if unresolved