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 ofHttpContextActivationFilterthat 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 booleanaccepts(javax.servlet.http.HttpServletRequest request)Determines whether CDI contexts should be active during processing of this requestvoidcleanup()Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
-
-
-
Method Detail
-
accepts
public boolean accepts(javax.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
-
-