Class RestSessionDataInjectionFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
de.hybris.platform.cmssmarteditwebservices.filter.RestSessionDataInjectionFilter
- All Implemented Interfaces:
javax.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
public class RestSessionDataInjectionFilter
extends org.springframework.web.filter.GenericFilterBean
Filter that creates a new session for the request and injects data into the session with restrictions disabled. This
filter is designed to create a new session and to inject any pertinent data into the current session, e.g. all the
catalog versions, before dispatching to the controller.
-
Field Summary
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) protected CatalogVersionServiceprotected SearchRestrictionServiceprotected SessionServicevoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetSearchRestrictionService(SearchRestrictionService searchRestrictionService) voidsetSessionService(SessionService sessionService) Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
RestSessionDataInjectionFilter
public RestSessionDataInjectionFilter()
-
-
Method Details
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
getSessionService
-
setSessionService
-
getSearchRestrictionService
-
setSearchRestrictionService
-
getCatalogVersionService
-
setCatalogVersionService
-