Class RegexHttpContextActivationFilter
- java.lang.Object
-
- org.jboss.weld.servlet.spi.helpers.RegexHttpContextActivationFilter
-
- All Implemented Interfaces:
Service
,HttpContextActivationFilter
public class RegexHttpContextActivationFilter extends Object implements HttpContextActivationFilter
A helper implementation ofHttpContextActivationFilter
that accepts every request that matches a predefined regular expression.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description RegexHttpContextActivationFilter(String regex)
RegexHttpContextActivationFilter(Pattern pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(jakarta.servlet.http.HttpServletRequest request)
Determines whether CDI contexts should be active during processing of this requestvoid
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
-
-
-
Method Detail
-
accepts
public boolean accepts(jakarta.servlet.http.HttpServletRequest request)
Description copied from interface:HttpContextActivationFilter
Determines whether CDI contexts should be active during processing of this request- Specified by:
accepts
in interfaceHttpContextActivationFilter
- Parameters:
request
- the request- Returns:
- true if CDI contexts should be active during processing of this request
-
-