Package org.exoplatform.oauth.filter
Class OAuthAbstractFilter
- java.lang.Object
-
- org.exoplatform.oauth.filter.OAuthAbstractFilter
-
- All Implemented Interfaces:
org.exoplatform.web.filter.Filter
- Direct Known Subclasses:
OAuthLoginServletFilter,OauthSignupOnflyFilter
public abstract class OAuthAbstractFilter extends Object implements org.exoplatform.web.filter.Filter
- Author:
- Tuyen Nguyen The.
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadLocal<org.exoplatform.container.PortalContainer>containerstatic StringCOOKIE_LAST_LOGIN
-
Constructor Summary
Constructors Constructor Description OAuthAbstractFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)protected abstract voidexecuteFilter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.FilterChain chain)protected javax.servlet.ServletContextgetContext()protected <T> TgetService(Class<T> clazz)protected booleanisOauthEnable()
-
-
-
Field Detail
-
COOKIE_LAST_LOGIN
public static final String COOKIE_LAST_LOGIN
- See Also:
- Constant Field Values
-
container
protected ThreadLocal<org.exoplatform.container.PortalContainer> container
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfaceorg.exoplatform.web.filter.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
executeFilter
protected abstract void executeFilter(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
isOauthEnable
protected boolean isOauthEnable()
-
getService
protected <T> T getService(Class<T> clazz)
-
getContext
protected javax.servlet.ServletContext getContext()
-
-