Class AcceptingHttpContextActivationFilter
- java.lang.Object
-
- org.jboss.weld.servlet.spi.helpers.AcceptingHttpContextActivationFilter
-
- All Implemented Interfaces:
Service,HttpContextActivationFilter
public class AcceptingHttpContextActivationFilter extends Object implements HttpContextActivationFilter
A helper implementation ofHttpContextActivationFilterthat accepts every request.- Author:
- Jozef Hartinger
-
-
Field Summary
Fields Modifier and Type Field Description static AcceptingHttpContextActivationFilterINSTANCE
-
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.
-
-
-
Field Detail
-
INSTANCE
public static final AcceptingHttpContextActivationFilter INSTANCE
-
-
Method Detail
-
cleanup
public void cleanup()
Description copied from interface:ServiceCalled by Weld when it is shutting down, allowing the service to perform any cleanup needed.
-
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
-
-