@Singleton public class PreSessionTenantFilter extends AbstractTenantFilter
PreSessionTenantFilter
is responsible to set current tenant before database
connection is created.SESSION_KEY_PREFIX_SHIRO, SESSION_KEY_TENANT_ID, SESSION_KEY_TENANT_MAP, TENANT_COOKIE_NAME, TENANT_LOGIN_PARAM
Constructor and Description |
---|
PreSessionTenantFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doFilterInternal(ServletRequest request,
ServletResponse response,
FilterChain chain) |
doFilter, getCookie, getTenants, init, isXHR, setCookie
protected void doFilterInternal(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilterInternal
in class AbstractTenantFilter
IOException
ServletException
public void destroy()
destroy
in interface Filter
destroy
in class AbstractTenantFilter