jakarta.servlet.FilterChain used to manage the execution of a set of filters for a
particular request. When the set of defined filters has all been executed, the next call to doFilter()
will execute the servlet's service() method itself.
| Modifier and Type | Field and Description |
|---|---|
| private final WebappContext | |
| private FilterRegistration[] | |
| private final Object | |
| private static final Logger | |
| private int | |
| private int | pos
The int which is used to maintain the current position in the filter chain. |
| private final Servlet | servlet
The servlet instance to be executed by this chain. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | doFilter(ServletRequest
The servlet request we are processing request, ServletResponse The servlet response we are creating response)Implements jakarta. Invoke the next filter in this chain, passing the specified request and response. |
| public void | invokeFilterChain(ServletRequest request, ServletResponse response)
Implements org.
|
| private void | |
| private void |
| ctx | back to summary |
|---|---|
| private final WebappContext ctx | |
| filters | back to summary |
|---|---|
| private FilterRegistration[] filters | |
| lock | back to summary |
|---|---|
| private final Object lock | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| n | back to summary |
|---|---|
| private int n | |
| pos | back to summary |
|---|---|
| private int pos The int which is used to maintain the current position in the filter chain. | |
| servlet | back to summary |
|---|---|
| private final Servlet servlet The servlet instance to be executed by this chain. | |
| FilterChainImpl | back to summary |
|---|---|
| public FilterChainImpl(final Servlet servlet, final WebappContext ctx) | |
| addFilter | back to summary |
|---|---|
| protected void addFilter(final FilterRegistration filterRegistration) | |
| doFilter | back to summary |
|---|---|
| public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException Implements jakarta. Invoke the next filter in this chain, passing the specified request and response. If there are no more filters in
this chain, invoke the
| |
| invokeFilterChain | back to summary |
|---|---|
| public void invokeFilterChain(ServletRequest request, ServletResponse response) throws IOException, ServletException Implements org.
| |
| requestDestroyed | back to summary |
|---|---|
| private void requestDestroyed(ServletRequestEvent event) | |
| requestInitialized | back to summary |
|---|---|
| private void requestInitialized(ServletRequestEvent event) | |