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 -
Constructor Summary
ConstructorsConstructorDescriptionServletApiAbstraction(org.jboss.weld.resources.spi.ResourceLoader resourceLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()booleanisAsyncStarted(jakarta.servlet.ServletRequest request) Evaluates jakarta.servlet.ServletRequest#isAsyncStarted() method on given ServletRequest instance via reflection api.booleanIndicates, 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 Details
-
SERVLET_CONTEXT_CLASS_NAME
- See Also:
-
-
Constructor Details
-
ServletApiAbstraction
public ServletApiAbstraction(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
-
-
Method Details
-
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
-