Interface HttpContextActivationFilter

All Superinterfaces:
Service
All Known Implementing Classes:
AcceptingHttpContextActivationFilter, RegexHttpContextActivationFilter

public interface HttpContextActivationFilter extends Service
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 Type
    Method
    Description
    boolean
    accepts(jakarta.servlet.http.HttpServletRequest request)
    Determines whether CDI contexts should be active during processing of this request

    Methods inherited from interface org.jboss.weld.bootstrap.api.Service

    cleanup
  • 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