public abstract class WebAsyncUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.reflect.Constructor<?> |
standardAsyncRequestConstructor |
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.
|
private static AsyncWebRequest |
createStandardServletAsyncWebRequest(HttpServletRequest request,
HttpServletResponse response) |
static WebAsyncManager |
getAsyncManager(ServletRequest servletRequest)
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
private static java.lang.reflect.Constructor<?> standardAsyncRequestConstructor
public static WebAsyncManager getAsyncManager(ServletRequest servletRequest)
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
)private static AsyncWebRequest createStandardServletAsyncWebRequest(HttpServletRequest request, HttpServletResponse response)