Class WebAsyncUtils
java.lang.Object
org.springframework.web.context.request.async.WebAsyncUtils
Utility methods related to processing asynchronous web requests.
- Since:
- 3.2
- Author:
- Rossen Stoyanchev, Juergen Hoeller
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe name attribute containing theWebAsyncManager.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic AsyncWebRequestcreateAsyncWebRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create an AsyncWebRequest instance.static WebAsyncManagergetAsyncManager(jakarta.servlet.ServletRequest servletRequest) Obtain theWebAsyncManagerfor the current request, or if not found, create and associate it with the request.static WebAsyncManagergetAsyncManager(WebRequest webRequest) Obtain theWebAsyncManagerfor the current request, or if not found, create and associate it with the request.
- 
Field Details- 
WEB_ASYNC_MANAGER_ATTRIBUTEThe name attribute containing theWebAsyncManager.
 
- 
- 
Constructor Details- 
WebAsyncUtilspublic WebAsyncUtils()
 
- 
- 
Method Details- 
getAsyncManagerObtain theWebAsyncManagerfor the current request, or if not found, create and associate it with the request.
- 
getAsyncManagerObtain theWebAsyncManagerfor the current request, or if not found, create and associate it with the request.
- 
createAsyncWebRequestpublic static AsyncWebRequest createAsyncWebRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Create an AsyncWebRequest instance. By default, an instance ofStandardServletAsyncWebRequestgets created.- Parameters:
- request- the current request
- response- the current response
- Returns:
- an AsyncWebRequest instance (never null)
 
 
-