Class ServletApiAbstraction

  • All Implemented Interfaces:
    org.jboss.weld.bootstrap.api.Service

    public class ServletApiAbstraction
    extends ApiAbstraction
    implements org.jboss.weld.bootstrap.api.Service
    • Constructor Detail

      • ServletApiAbstraction

        public ServletApiAbstraction​(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
    • 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:
        cleanup in interface org.jboss.weld.bootstrap.api.Service