public abstract class WebAsyncUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WEB_ASYNC_MANAGER_ATTRIBUTE |
Constructor and Description |
---|
WebAsyncUtils() |
Modifier and Type | Method and Description |
---|---|
static AsyncWebRequest |
createAsyncWebRequest(HttpServletRequest request,
HttpServletResponse response)
Create an AsyncWebRequest instance.
|
static WebAsyncManager |
getAsyncManager(ServletRequest servletRequest)
Obtain the
WebAsyncManager for the current request, or if not
found, create and associate it with the request. |
static WebAsyncManager |
getAsyncManager(WebRequest webRequest)
Obtain the
WebAsyncManager for the current request, or if not
found, create and associate it with the request. |
public static final java.lang.String WEB_ASYNC_MANAGER_ATTRIBUTE
public static WebAsyncManager getAsyncManager(ServletRequest servletRequest)
WebAsyncManager
for the current request, or if not
found, create and associate it with the request.public static WebAsyncManager getAsyncManager(WebRequest webRequest)
WebAsyncManager
for the current request, or if not
found, create and associate it with the request.public static AsyncWebRequest createAsyncWebRequest(HttpServletRequest request, HttpServletResponse response)
StandardServletAsyncWebRequest
gets created when running in
Servlet 3.0 (or higher) environment - as a fallback, an instance
of NoSupportAsyncWebRequest
will be returned.request
- the current requestresponse
- the current responsenull
)