Package org.jboss.weld.servlet.spi
Interface HttpContextActivationFilter
- All Superinterfaces:
Service
- All Known Implementing Classes:
AcceptingHttpContextActivationFilter,RegexHttpContextActivationFilter
Enables an integrator to control if CDI contexts should be activated for a particular
HttpServletRequest. An
integrator may be interested in filtering
out requests where CDI is not necessary to eliminate the overhead of context activation/deactivation. For example, an
integrator may want to use this filter
to filter out static resource requests from CDI processing.
This service is optional. If not present, every request is accepted.- Author:
- Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(jakarta.servlet.http.HttpServletRequest request) Determines whether CDI contexts should be active during processing of this request
-
Method Details
-
accepts
boolean accepts(jakarta.servlet.http.HttpServletRequest request) Determines whether CDI contexts should be active during processing of this request- Parameters:
request- the request- Returns:
- true if CDI contexts should be active during processing of this request
-