@groovy.transform.CompileStatic class AsyncGrailsWebRequest extends GrailsWebRequest
Implementation of Spring 4.0 AsyncWebRequest interface for Grails
Type | Name and description |
---|---|
static java.lang.String |
WEB_REQUEST |
AsyncContext |
asyncContext |
java.util.List<java.lang.Runnable> |
completionHandlers |
java.util.List<java.util.function.Consumer<java.lang.Throwable>> |
exceptionHandlers |
java.lang.Long |
timeout |
java.util.List<java.lang.Runnable> |
timeoutHandlers |
Constructor and description |
---|
AsyncGrailsWebRequest
(HttpServletRequest request, HttpServletResponse response, GrailsApplicationAttributes attributes) |
AsyncGrailsWebRequest
(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) |
AsyncGrailsWebRequest
(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext, ApplicationContext applicationContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addCompletionHandler(java.lang.Runnable runnable) |
|
void |
addErrorHandler(java.util.function.Consumer<java.lang.Throwable> exceptionHandler) |
|
void |
addTimeoutHandler(java.lang.Runnable runnable) |
|
void |
dispatch() |
|
boolean |
isAsyncComplete() |
|
boolean |
isAsyncStarted() |
|
static AsyncGrailsWebRequest |
lookup(HttpServletRequest request) Looks up the GrailsWebRequest from the current request. |
|
void |
onComplete(AsyncEvent event) |
|
void |
onError(AsyncEvent event) |
|
void |
onStartAsync(AsyncEvent event) |
|
void |
onTimeout(AsyncEvent event) |
|
void |
startAsync() |
Looks up the GrailsWebRequest from the current request.
request
- The current request