spring-framework / org.springframework.web.context.request.async / WebAsyncUtils

WebAsyncUtils

abstract class WebAsyncUtils

Utility methods related to processing asynchronous web requests.

Author
Rossen Stoyanchev

Author
Juergen Hoeller

Since
3.2

Constructors

<init>

WebAsyncUtils()

Utility methods related to processing asynchronous web requests.

Properties

WEB_ASYNC_MANAGER_ATTRIBUTE

static val WEB_ASYNC_MANAGER_ATTRIBUTE: String

Functions

createAsyncWebRequest

open static fun createAsyncWebRequest(request: HttpServletRequest, response: HttpServletResponse): AsyncWebRequest

Create an AsyncWebRequest instance. By default, an instance of StandardServletAsyncWebRequest gets created.

getAsyncManager

open static fun getAsyncManager(servletRequest: ServletRequest): WebAsyncManager
open static fun getAsyncManager(webRequest: WebRequest): WebAsyncManager

Obtain the WebAsyncManager for the current request, or if not found, create and associate it with the request.