Class ResourceUrlProvider

java.lang.Object
org.springframework.web.reactive.resource.ResourceUrlProvider
All Implemented Interfaces:
EventListener, Aware, ApplicationContextAware, ApplicationListener<ContextRefreshedEvent>

public class ResourceUrlProvider extends Object implements ApplicationListener<ContextRefreshedEvent>, ApplicationContextAware
A central component to use to obtain the public URL path that clients should use to access a static resource.

This class is aware of Spring WebFlux handler mappings used to serve static resources and uses the ResourceResolver chains of the configured ResourceHttpRequestHandlers to make its decisions.

Since:
5.0
Author:
Rossen Stoyanchev, Brian Clozel