类 StandardServletAsyncWebRequest
java.lang.Object
cn.taketoday.web.context.async.AsyncWebRequest
cn.taketoday.web.context.async.StandardServletAsyncWebRequest
- 所有已实现的接口:
AsyncListener,EventListener
A Servlet implementation of
AsyncWebRequest.
The servlet and all filters involved in an async request must have async
support enabled using the Servlet API or by adding an
<async-supported>true</async-supported> element to servlet and filter
declarations in web.xml.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Harry Yang
-
字段概要
字段修饰符和类型字段说明private AsyncContextprivate final ServletRequestContextprivate final HttpServletRequestprivate final HttpServletResponse从类继承的字段 cn.taketoday.web.context.async.AsyncWebRequest
asyncCompleted, completionHandlers, exceptionHandlers, timeout, timeoutHandlers -
构造器概要
构造器构造器说明StandardServletAsyncWebRequest(HttpServletRequest request, HttpServletResponse response) Create a new instance for the given request/response pair. -
方法概要
修饰符和类型方法说明voidDispatch the request to the container in order to resume processing after concurrent execution in an application thread.booleanWhether the request is in async mode following a call toAsyncWebRequest.startAsync().voidonComplete(AsyncEvent event) voidonError(AsyncEvent event) voidonStartAsync(AsyncEvent event) voidonTimeout(AsyncEvent event) voidMark the start of asynchronous request processing so that when the main processing thread exits, the response remains open for further processing in another thread.从类继承的方法 cn.taketoday.web.context.async.AsyncWebRequest
addCompletionHandler, addErrorHandler, addTimeoutHandler, dispatchEvent, isAsyncComplete, setTimeout
-
字段详细资料
-
asyncContext
-
request
-
servletRequest
-
servletResponse
-
-
构造器详细资料
-
StandardServletAsyncWebRequest
-
StandardServletAsyncWebRequest
Create a new instance for the given request/response pair.- 参数:
request- current HTTP requestresponse- current HTTP response
-
-
方法详细资料
-
isAsyncStarted
public boolean isAsyncStarted()从类复制的说明:AsyncWebRequestWhether the request is in async mode following a call toAsyncWebRequest.startAsync(). Returns "false" if asynchronous processing never started, has completed, or the request was dispatched for further processing.- 指定者:
isAsyncStarted在类中AsyncWebRequest
-
startAsync
public void startAsync()从类复制的说明:AsyncWebRequestMark the start of asynchronous request processing so that when the main processing thread exits, the response remains open for further processing in another thread.- 指定者:
startAsync在类中AsyncWebRequest
-
dispatch
从类复制的说明:AsyncWebRequestDispatch the request to the container in order to resume processing after concurrent execution in an application thread.- 指定者:
dispatch在类中AsyncWebRequest
-
onStartAsync
- 指定者:
onStartAsync在接口中AsyncListener
-
onError
- 指定者:
onError在接口中AsyncListener- 抛出:
IOException
-
onTimeout
- 指定者:
onTimeout在接口中AsyncListener- 抛出:
IOException
-
onComplete
- 指定者:
onComplete在接口中AsyncListener- 抛出:
IOException
-