Class RegexHttpContextActivationFilter
java.lang.Object
org.jboss.weld.servlet.spi.helpers.RegexHttpContextActivationFilter
- All Implemented Interfaces:
Service,HttpContextActivationFilter
A helper implementation of
HttpContextActivationFilter that accepts every request that matches a predefined regular
expression.- Author:
- Jozef Hartinger
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance using provided StringRegexHttpContextActivationFilter(Pattern pattern) Constructs an instance using providedPattern -
Method Summary
-
Constructor Details
-
Method Details
-
accepts
public boolean accepts(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:HttpContextActivationFilterDetermines whether CDI contexts should be active during processing of this request- Specified by:
acceptsin interfaceHttpContextActivationFilter- Parameters:
request- the request- Returns:
- true if CDI contexts should be active during processing of this request
-
cleanup
public void cleanup()Description copied from interface:ServiceCalled by Weld when it is shutting down, allowing the service to perform any cleanup needed.
-