Package org.gatein.sso.agent.filter
Class AbstractLogoutFilter
- java.lang.Object
-
- org.exoplatform.container.web.AbstractFilter
-
- org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
-
- org.gatein.sso.agent.filter.AbstractLogoutFilter
-
- All Implemented Interfaces:
javax.servlet.Filter,SSOInterceptor
- Direct Known Subclasses:
OpenSSOLogoutFilter
public abstract class AbstractLogoutFilter extends AbstractSSOInterceptor
- Author:
- Sohil Shah
-
-
Field Summary
Fields Modifier and Type Field Description protected org.exoplatform.services.log.Loglogprotected StringlogoutUrl-
Fields inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
PORTAL_CONTAINER_SUBSTITUTION_PATTERN
-
-
Constructor Summary
Constructors Constructor Description AbstractLogoutFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)protected abstract StringgetRedirectUrl(javax.servlet.http.HttpServletRequest httpRequest)protected booleanhandleLogout(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)Handle logout on SSO server sideprotected voidinitImpl()This method needs to be implemented by conrete filter.protected booleanisLogoutInProgress(javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
afterInit, getExoContainer, getInitParameter, initWithParams
-
Methods inherited from class org.exoplatform.container.web.AbstractFilter
getContainer, getServletContext, init, requirePortalEnvironment
-
-
-
-
Field Detail
-
logoutUrl
protected String logoutUrl
-
log
protected final org.exoplatform.services.log.Log log
-
-
Method Detail
-
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(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
isLogoutInProgress
protected boolean isLogoutInProgress(javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-
handleLogout
protected boolean handleLogout(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse) throws IOExceptionHandle logout on SSO server side- Parameters:
httpRequest-httpResponse-- Returns:
- true if redirection to SSO server was send. We need to return immediately from filter invocation then
- Throws:
IOException
-
getRedirectUrl
protected abstract String getRedirectUrl(javax.servlet.http.HttpServletRequest httpRequest)
-
-