org.springframework.web.reactive.config

Class ResourceChainRegistration

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


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

      • ResourceChainRegistration

        public ResourceChainRegistration(boolean cacheResources)
      • ResourceChainRegistration

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

      • 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 java.util.List<ResourceResolver> getResourceResolvers()
      • getResourceTransformers

        protected java.util.List<ResourceTransformer> getResourceTransformers()