Class ResourceChainRegistration

java.lang.Object
org.springframework.web.reactive.config.ResourceChainRegistration

public class ResourceChainRegistration extends Object
Assists with the registration of resource resolvers and transformers.
Since:
5.0
Author:
Rossen Stoyanchev
  • Constructor Details

    • ResourceChainRegistration

      public ResourceChainRegistration(boolean cacheResources)
    • ResourceChainRegistration

      public ResourceChainRegistration(boolean cacheResources, @Nullable Cache cache)
  • Method Details

    • addResolver

      public ResourceChainRegistration addResolver(ResourceResolver resolver)
      Add a resource resolver to the chain.
      Parameters:
      resolver - the resolver to add
      Returns:
      the current instance for chained method invocation
    • addTransformer

      public ResourceChainRegistration addTransformer(ResourceTransformer transformer)
      Add a resource transformer to the chain.
      Parameters:
      transformer - the transformer to add
      Returns:
      the current instance for chained method invocation
    • getResourceResolvers

      protected List<ResourceResolver> getResourceResolvers()
    • getResourceTransformers

      protected List<ResourceTransformer> getResourceTransformers()