Class WebContentInterceptorFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>, org.springframework.beans.factory.InitializingBean

    public class WebContentInterceptorFactory
    extends org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
    AbstractFactoryBean implementation to configure a WebContentInterceptor instance to handle paths including etag header.
    Since:
    4.0.3
    Author:
    jmendeza
    • Field Summary

      • Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

        logger
      • Fields inherited from interface org.springframework.beans.factory.FactoryBean

        OBJECT_TYPE_ATTRIBUTE
    • Constructor Detail

      • WebContentInterceptorFactory

        @ConstructorProperties({"cacheControl","cachedPaths","alwaysRevalidatePaths"})
        public WebContentInterceptorFactory​(org.springframework.http.CacheControl cacheControl,
                                            String[] cachedPaths,
                                            String[] alwaysRevalidatePaths)
    • Method Detail

      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
      • createInstance

        @NonNull
        protected org.springframework.web.servlet.mvc.WebContentInterceptor createInstance()
                                                                                    throws Exception
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
        Throws:
        Exception