public abstract class AbstractGenericFilterBean
extends org.springframework.web.filter.GenericFilterBean
So, if a filter changes from AbstractGenericFilterBean
to OncePerRequestFilter
then
the filter code remains the same.
Constructor and Description |
---|
AbstractGenericFilterBean() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain) |
protected abstract void |
doFilterInternal(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
javax.servlet.FilterChain filterChain)
Same contract as for
doFilter . |
public final void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
protected abstract void doFilterInternal(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException
doFilter
.javax.servlet.ServletException
java.io.IOException