Class WebContentInterceptorFactory
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
-
- org.craftercms.studio.impl.v2.utils.spring.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 aWebContentInterceptor
instance to handle paths including etag header.- Since:
- 4.0.3
- Author:
- jmendeza
-
-
Constructor Summary
Constructors Constructor Description WebContentInterceptorFactory(org.springframework.http.CacheControl cacheControl, String[] cachedPaths, String[] alwaysRevalidatePaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.servlet.mvc.WebContentInterceptor
createInstance()
Class<?>
getObjectType()
-
-
-
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 interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
- Specified by:
getObjectType
in classorg.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 classorg.springframework.beans.factory.config.AbstractFactoryBean<org.springframework.web.servlet.mvc.WebContentInterceptor>
- Throws:
Exception
-
-