Class DynamicTenantSwitchingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.servicelayer.web.DynamicTenantSwitchingFilter
- 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
@Deprecated(since="5.0",
forRemoval=true)
public class DynamicTenantSwitchingFilter
extends org.springframework.web.filter.OncePerRequestFilter
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0, please use the filter chain.
Filter which takes care of switching the given tenant by parsing the URL. Logic which determines tenant comes from
static tenant configuration.
-
Field Summary
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.springframework.web.filter.GenericFilterBean
logger -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.DynamicTenantSwitchingFilter(String tenantIDPattern) Deprecated, for removal: This API element is subject to removal in a future version.since ages -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
DynamicTenantSwitchingFilter
@Deprecated(since="ages", forRemoval=true) public DynamicTenantSwitchingFilter(String tenantIDPattern) Deprecated, for removal: This API element is subject to removal in a future version.since agesThe tenant ID pattern can only be set during initialization/startup of the platform. -
DynamicTenantSwitchingFilter
public DynamicTenantSwitchingFilter()Deprecated, for removal: This API element is subject to removal in a future version.- Since:
- 5.0
-
-
Method Details
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
IOExceptionjavax.servlet.ServletException
-