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
- Author:
- Sohil Shah
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.exoplatform.services.log.Logprotected StringFields 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(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, 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 javax.servlet.Filter
init
-
Field Details
-
logoutUrl
-
log
protected final org.exoplatform.services.log.Log log
-
-
Constructor Details
-
AbstractLogoutFilter
public AbstractLogoutFilter()
-
-
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(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 IOException Handle 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
-