public abstract class WebAsyncUtils extends Object
Modifier and Type | Field and Description |
---|---|
static 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 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.request
- the current requestresponse
- the current responsenull
)