Package javax.servlet
Interface Filter
-
- All Known Implementing Classes:
AuthenticationFilter
,AuthorizationFilter
,AuthorizationPreFilter
,GenericFilter
,HttpFilter
public interface Filter
The Filter API.- Author:
- Manfred Riem ([email protected])
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
destroy()
Destroy the filter.void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
Process the request.default void
init(FilterConfig filterConfig)
Initialize the filter.
-
-
-
Method Detail
-
destroy
default void destroy()
Destroy the filter.
-
doFilter
void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
Process the request.- Parameters:
request
- the request.response
- the response.chain
- the chain.- Throws:
IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-
init
default void init(FilterConfig filterConfig) throws ServletException
Initialize the filter.- Parameters:
filterConfig
- the filter configuration.- Throws:
ServletException
- when a servlet error occurs.
-
-