类 NoSupportAsyncWebRequest
- java.lang.Object
- org.springframework.web.context.request.AbstractRequestAttributes
- org.springframework.web.context.request.ServletRequestAttributes
- org.springframework.web.context.request.ServletWebRequest
- org.springframework.web.context.request.async.NoSupportAsyncWebRequest
- 所有已实现的接口:
AsyncWebRequest
,NativeWebRequest
,RequestAttributes
,WebRequest
public class NoSupportAsyncWebRequest extends ServletWebRequest implements AsyncWebRequest
AnAsyncWebRequest
to use when there is no underlying async support.- 从以下版本开始:
- 3.2
- 作者:
- Rossen Stoyanchev
字段概要
从类继承的字段 org.springframework.web.context.request.ServletRequestAttributes
DESTRUCTION_CALLBACK_NAME_PREFIX, immutableValueTypes
从类继承的字段 org.springframework.web.context.request.AbstractRequestAttributes
requestDestructionCallbacks
从接口继承的字段 org.springframework.web.context.request.RequestAttributes
REFERENCE_REQUEST, REFERENCE_SESSION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION
构造器概要
构造器 构造器 说明 NoSupportAsyncWebRequest(HttpServletRequest request, HttpServletResponse response)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addCompletionHandler(Runnable runnable)
Add a handle to invoke when request processing completes.void
addTimeoutHandler(Runnable runnable)
Add a handler to invoke when concurrent handling has timed out.void
dispatch()
Dispatch the request to the container in order to resume processing after concurrent execution in an application thread.boolean
isAsyncComplete()
Whether asynchronous processing has completed.boolean
isAsyncStarted()
Whether the request is in async mode following a call toAsyncWebRequest.startAsync()
.void
setTimeout(Long timeout)
Set the time required for concurrent handling to complete.void
startAsync()
Mark the start of asynchronous request processing so that when the main processing thread exits, the response remains open for further processing in another thread.从类继承的方法 org.springframework.web.context.request.ServletWebRequest
checkNotModified, checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getHttpMethod, getLocale, getNativeRequest, getNativeRequest, getNativeResponse, getNativeResponse, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isNotModified, isSecure, isUserInRole, toString
从类继承的方法 org.springframework.web.context.request.ServletRequestAttributes
getAttribute, getAttributeNames, getRequest, getResponse, getSession, getSessionId, getSessionMutex, isImmutableSessionAttribute, registerDestructionCallback, registerSessionDestructionCallback, removeAttribute, resolveReference, setAttribute, updateAccessedSessionAttributes
从类继承的方法 org.springframework.web.context.request.AbstractRequestAttributes
isRequestActive, registerRequestDestructionCallback, removeRequestDestructionCallback, requestCompleted
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.web.context.request.NativeWebRequest
getNativeRequest, getNativeRequest, getNativeResponse, getNativeResponse
从接口继承的方法 org.springframework.web.context.request.RequestAttributes
getAttribute, getAttributeNames, getSessionId, getSessionMutex, registerDestructionCallback, removeAttribute, resolveReference, setAttribute
从接口继承的方法 org.springframework.web.context.request.WebRequest
checkNotModified, checkNotModified, checkNotModified, getContextPath, getDescription, getHeader, getHeaderNames, getHeaderValues, getLocale, getParameter, getParameterMap, getParameterNames, getParameterValues, getRemoteUser, getUserPrincipal, isSecure, isUserInRole
构造器详细资料
NoSupportAsyncWebRequest
public NoSupportAsyncWebRequest(HttpServletRequest request, HttpServletResponse response)
方法详细资料
addCompletionHandler
public void addCompletionHandler(Runnable runnable)
从接口复制的说明:AsyncWebRequest
Add a handle to invoke when request processing completes.- 指定者:
addCompletionHandler
在接口中AsyncWebRequest
setTimeout
public void setTimeout(Long timeout)
从接口复制的说明:AsyncWebRequest
Set the time required for concurrent handling to complete. This property should not be set when concurrent handling is in progress, i.e. whenAsyncWebRequest.isAsyncStarted()
istrue
.- 指定者:
setTimeout
在接口中AsyncWebRequest
- 参数:
timeout
- amount of time in milliseconds;null
means no timeout, i.e. rely on the default timeout of the container.
addTimeoutHandler
public void addTimeoutHandler(Runnable runnable)
从接口复制的说明:AsyncWebRequest
Add a handler to invoke when concurrent handling has timed out.- 指定者:
addTimeoutHandler
在接口中AsyncWebRequest
isAsyncStarted
public boolean isAsyncStarted()
从接口复制的说明:AsyncWebRequest
Whether 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()
从接口复制的说明:AsyncWebRequest
Mark 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
isAsyncComplete
public boolean isAsyncComplete()
从接口复制的说明:AsyncWebRequest
Whether asynchronous processing has completed.- 指定者:
isAsyncComplete
在接口中AsyncWebRequest
dispatch
public void dispatch()
从接口复制的说明:AsyncWebRequest
Dispatch the request to the container in order to resume processing after concurrent execution in an application thread.- 指定者:
dispatch
在接口中AsyncWebRequest