Class webAsyncUtils

java.lang.Object
org.springframework.web.context.request.async.webAsyncUtils

public abstract class webAsyncUtils extends Object
Utility methods related to processing asynchronous web requests.
Since:
3.2
Author:
Rossen Stoyanchev, Juergen Hoeller
  • Field Details

    • web_ASYNC_MANAGER_ATTRIBUTE

      public static final String web_ASYNC_MANAGER_ATTRIBUTE
      The name attribute containing the webAsyncManager.
  • Constructor Details

    • webAsyncUtils

      public webAsyncUtils()
  • Method Details

    • getAsyncManager

      public static webAsyncManager getAsyncManager(jakarta.servlet.ServletRequest servletRequest)
      Obtain the webAsyncManager for the current request, or if not found, create and associate it with the request.
    • getAsyncManager

      public static webAsyncManager getAsyncManager(webRequest webRequest)
      Obtain the webAsyncManager for the current request, or if not found, create and associate it with the request.
    • createAsyncwebRequest

      public static AsyncwebRequest createAsyncwebRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Create an AsyncwebRequest instance. By default, an instance of StandardServletAsyncwebRequest gets created.
      Parameters:
      request - the current request
      response - the current response
      Returns:
      an AsyncwebRequest instance (never null)