com.liferay.portal.kernel.servlet
Class BaseFilter
java.lang.Object
com.liferay.portal.kernel.servlet.BaseFilter
- All Implemented Interfaces:
- LiferayFilter, javax.servlet.Filter
- Direct Known Subclasses:
- AxisCleanUpFilter, BasePortalFilter
public abstract class BaseFilter
- extends Object
- implements LiferayFilter
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
|
javax.servlet.FilterConfig |
getFilterConfig()
|
protected abstract Log |
getLog()
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
boolean |
isFilterEnabled()
|
boolean |
isFilterEnabled(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
processFilter(Class<?> filterClass,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
|
protected void |
processFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
|
void |
setFilterEnabled(boolean filterEnabled)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseFilter
public BaseFilter()
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
getFilterConfig
public javax.servlet.FilterConfig getFilterConfig()
init
public void init(javax.servlet.FilterConfig filterConfig)
- Specified by:
init
in interface javax.servlet.Filter
isFilterEnabled
public boolean isFilterEnabled()
- Specified by:
isFilterEnabled
in interface LiferayFilter
isFilterEnabled
public boolean isFilterEnabled(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Specified by:
isFilterEnabled
in interface LiferayFilter
setFilterEnabled
public void setFilterEnabled(boolean filterEnabled)
- Specified by:
setFilterEnabled
in interface LiferayFilter
getLog
protected abstract Log getLog()
processFilter
protected void processFilter(Class<?> filterClass,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws Exception
- Throws:
Exception
processFilter
protected void processFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws Exception
- Throws:
Exception