@groovy.transform.CompileStatic class AsyncGrailsWebRequest extends GrailsWebRequest implements org.springframework.web.context.request.async.AsyncWebRequest, jakarta.servlet.AsyncListener
Implementation of Spring 4.0 org.springframework.web.context.request.async.AsyncWebRequest interface for Grails
Modifiers | Name | Description |
---|---|---|
private java.util.concurrent.atomic.AtomicBoolean |
asyncCompleted |
Fields inherited from class | Fields |
---|---|
class GrailsWebRequest |
ID_PARAMETER, REDIRECT_CALLED, applicationContext, attributes, baseUrl, encodingStateRegistry, filteringEncoder, grailsApplicationAttributesClass, grailsApplicationAttributesConstructor, multipartRequest, originalParams, parameterCreationListeners, params, renderView, session, skipFilteringCodec, urlHelper, wrappedResponse |
Type | Name and description |
---|---|
static java.lang.String |
WEB_REQUEST |
jakarta.servlet.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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, GrailsApplicationAttributes attributes) |
AsyncGrailsWebRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext) |
AsyncGrailsWebRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext servletContext, org.springframework.context.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(jakarta.servlet.http.HttpServletRequest request) Looks up the GrailsWebRequest from the current request. |
|
void |
onComplete(jakarta.servlet.AsyncEvent event) |
|
void |
onError(jakarta.servlet.AsyncEvent event) |
|
void |
onStartAsync(jakarta.servlet.AsyncEvent event) |
|
void |
onTimeout(jakarta.servlet.AsyncEvent event) |
|
void |
startAsync() |
Looks up the GrailsWebRequest from the current request.
request
- The current requestGroovy Documentation