java.lang.Object
jakarta.servlet.GenericFilter
jakarta.servlet.http.HttpFilter
- All Implemented Interfaces:
Filter
,FilterConfig
,java.io.Serializable
- Direct Known Subclasses:
AuthenticationFilter
,AuthorizationFilter
,AuthorizationPreFilter
public abstract class HttpFilter extends GenericFilter
A HTTP filter.
- Author:
- Manfred Riem ([email protected])
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description HttpFilter()
-
Method Summary
Modifier and Type Method Description protected void
doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
Process the filter.void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
Process the filter.Methods inherited from class jakarta.servlet.GenericFilter
getFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init, init
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HttpFilter
public HttpFilter()
-
-
Method Details
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletExceptionProcess the filter.- Parameters:
request
- the request.response
- the responsechain
- the filter chain- Throws:
java.io.IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-
doFilter
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws java.io.IOException, ServletExceptionProcess the filter.- Parameters:
request
- the request.response
- the response.chain
- the chain.- Throws:
java.io.IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-