Package org.gatein.sso.agent.filter.api
Class AbstractSSOInterceptor
java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
- All Implemented Interfaces:
javax.servlet.Filter,SSOInterceptor
- Direct Known Subclasses:
AbstractLogoutFilter,InitiateLoginFilter,LoginRedirectFilter
public abstract class AbstractSSOInterceptor
extends org.exoplatform.container.web.AbstractFilter
implements SSOInterceptor
Base
SSOInterceptor which adds possibility to be initialized either through Servlet API or through eXo kernel- Author:
- Marek Posolda
-
Field Summary
FieldsFields inherited from class org.exoplatform.container.web.AbstractFilter
config, servletContextName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidafterInit(javax.servlet.FilterConfig filterConfig) Method is invoked if we are performing initialization through servlet api (web filter)protected org.exoplatform.container.ExoContainerNeed to use different method name because method "super.getContainer()" is final :-/getInitParameter(String paramName) Read init parameter (works for both kernel initialization or Servlet API initialization)protected abstract voidinitImpl()This method needs to be implemented by conrete filter.final voidinitWithParams(org.exoplatform.container.xml.InitParams params, org.exoplatform.container.ExoContainerContext containerContext) Method is invoked if we are performing initialization through exo kernelMethods 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 javax.servlet.Filter
destroy, doFilter, init
-
Field Details
-
PORTAL_CONTAINER_SUBSTITUTION_PATTERN
- See Also:
-
-
Constructor Details
-
AbstractSSOInterceptor
public AbstractSSOInterceptor()
-
-
Method Details
-
afterInit
protected final void afterInit(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException Method is invoked if we are performing initialization through servlet api (web filter)- Overrides:
afterInitin classorg.exoplatform.container.web.AbstractFilter- Throws:
javax.servlet.ServletException
-
initWithParams
public final void initWithParams(org.exoplatform.container.xml.InitParams params, org.exoplatform.container.ExoContainerContext containerContext) Method is invoked if we are performing initialization through exo kernel- Specified by:
initWithParamsin interfaceSSOInterceptor
-
initImpl
protected abstract void initImpl()This method needs to be implemented by conrete filter. Filter should obtain it's init parameters by callinggetInitParameter(String). This works in both types of initialization (Case1: Filter initialization through kernel, Case2: initialization through servlet API) -
getInitParameter
Read init parameter (works for both kernel initialization or Servlet API initialization)- Parameters:
paramName- parameter name- Returns:
- parameter value
-
getExoContainer
protected org.exoplatform.container.ExoContainer getExoContainer()Need to use different method name because method "super.getContainer()" is final :-/
-