Package org.zkoss.web.util.resource
Interface Filter
public interface Filter
A filter is an object that performs filtering task on a request to
Extendlet.- Since:
- 3.5.1
- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pi, FilterChain chain) Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.voidinit(FilterConfig config) Initializes the resource processor.
-
Method Details
-
init
Initializes the resource processor. -
doFilter
void doFilter(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String pi, FilterChain chain) throws jakarta.servlet.ServletException, IOException Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.- Parameters:
request- the request (never null).response- the response (never null).pi- the path info that the request is targeting.- Throws:
jakarta.servlet.ServletExceptionIOException
-