Class ServletApiAbstraction
- java.lang.Object
-
- org.jboss.weld.util.ApiAbstraction
-
- org.jboss.weld.module.web.servlet.ServletApiAbstraction
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service
public class ServletApiAbstraction extends ApiAbstraction implements org.jboss.weld.bootstrap.api.Service
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.weld.util.ApiAbstraction
ApiAbstraction.Dummy, ApiAbstraction.DummyAnnotation, ApiAbstraction.DummyEnum
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVLET_CONTEXT_CLASS_NAME
-
Constructor Summary
Constructors Constructor Description ServletApiAbstraction(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()booleanisAsyncStarted(jakarta.servlet.ServletRequest request)Evaluates jakarta.servlet.ServletRequest#isAsyncStarted() method on given ServletRequest instance via reflection api.booleanisAsyncSupported()Indicates, whether the version of Servlet API is available that has support for async processing (Servlet 3.0 and better)-
Methods inherited from class org.jboss.weld.util.ApiAbstraction
annotationTypeForName, classForName, enumValue
-
-
-
-
Field Detail
-
SERVLET_CONTEXT_CLASS_NAME
public static final String SERVLET_CONTEXT_CLASS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAsyncSupported
public boolean isAsyncSupported()
Indicates, whether the version of Servlet API is available that has support for async processing (Servlet 3.0 and better)- Returns:
-
isAsyncStarted
public boolean isAsyncStarted(jakarta.servlet.ServletRequest request)
Evaluates jakarta.servlet.ServletRequest#isAsyncStarted() method on given ServletRequest instance via reflection api.- Parameters:
request-- Returns:
- true if servletRequest started asynchronously, otherwise returns false.
-
cleanup
public void cleanup()
- Specified by:
cleanupin interfaceorg.jboss.weld.bootstrap.api.Service
-
-