Package org.gatein.sso.agent.filter
Class LoginRedirectFilter
java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
org.gatein.sso.agent.filter.LoginRedirectFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,SSOInterceptor
- Author:
- Sohil Shah
-
Field Summary
Fields inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
PORTAL_CONTAINER_SUBSTITUTION_PATTERNFields inherited from class org.exoplatform.container.web.AbstractFilter
config, servletContextName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) protected StringgetLoginRedirectURL(jakarta.servlet.http.HttpServletRequest httpRequest) protected voidinitImpl()This method needs to be implemented by conrete filter.Methods inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
afterInit, getExoContainer, getInitParameter, initWithParamsMethods inherited from class org.exoplatform.container.web.AbstractFilter
getContainer, getServletContext, init, requirePortalEnvironmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.Filter
init
-
Constructor Details
-
LoginRedirectFilter
public LoginRedirectFilter()
-
-
Method Details
-
initImpl
protected void initImpl()Description copied from class:AbstractSSOInterceptorThis method needs to be implemented by conrete filter. Filter should obtain it's init parameters by callingAbstractSSOInterceptor.getInitParameter(String). This works in both types of initialization (Case1: Filter initialization through kernel, Case2: initialization through servlet API)- Specified by:
initImplin classAbstractSSOInterceptor
-
destroy
public void destroy() -
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
getLoginRedirectURL
- Returns:
- value of parameter loginUrl. But can be overriden by subclasses.
-