java.lang.Object
jakarta.servlet.GenericFilter
jakarta.servlet.http.HttpFilter
- All Implemented Interfaces:
Filter
,FilterConfig
,Serializable
- Direct Known Subclasses:
AuthenticationFilter
,AuthorizationFilter
,AuthorizationPreFilter
A HTTP filter.
- Author:
- Manfred Riem ([email protected])
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
HttpFilter
public HttpFilter()
-
-
Method Details
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletExceptionProcess the filter.- Parameters:
request
- the request.response
- the responsechain
- the filter chain- Throws:
IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-
doFilter
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletExceptionProcess the filter.- Parameters:
request
- the request.response
- the response.chain
- the chain.- Throws:
IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-