Class 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
    public class DynamicTenantSwitchingFilter
    extends org.springframework.web.filter.OncePerRequestFilter
    Deprecated.
    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.
    See Also:
    Utilities.getTenantIdForContext(String, String)
    • Field Summary

      • Fields inherited from class org.springframework.web.filter.OncePerRequestFilter

        ALREADY_FILTERED_SUFFIX
      • Fields inherited from class org.springframework.web.filter.GenericFilterBean

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void doFilterInternal​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
      Deprecated.
       
      • Methods inherited from class org.springframework.web.filter.OncePerRequestFilter

        doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
      • Methods inherited from class org.springframework.web.filter.GenericFilterBean

        addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicTenantSwitchingFilter

        @Deprecated
        public DynamicTenantSwitchingFilter​(java.lang.String tenantIDPattern)
        Deprecated.
        since ages
        The tenant ID pattern can only be set during initialization/startup of the platform.
      • DynamicTenantSwitchingFilter

        public DynamicTenantSwitchingFilter()
        Deprecated.
        Since:
        5.0
    • Method Detail

      • doFilterInternal

        protected void doFilterInternal​(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        javax.servlet.FilterChain filterChain)
                                 throws java.io.IOException,
                                        javax.servlet.ServletException
        Deprecated.
        Specified by:
        doFilterInternal in class org.springframework.web.filter.OncePerRequestFilter
        Throws:
        java.io.IOException
        javax.servlet.ServletException