类 DeferredResultProcessingInterceptorAdapter
- java.lang.Object
- org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapter
- 所有已实现的接口:
DeferredResultProcessingInterceptor
@Deprecated public abstract class DeferredResultProcessingInterceptorAdapter extends Object implements DeferredResultProcessingInterceptor
已过时。as of 5.0 where DeferredResultProcessingInterceptor has default methodsAbstract adapter class for theDeferredResultProcessingInterceptor
interface for simplified implementation of individual methods.- 从以下版本开始:
- 3.2
- 作者:
- Rossen Stoyanchev, Rob Winch
构造器概要
构造器 构造器 说明 DeferredResultProcessingInterceptorAdapter()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 <T> void
afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult)
已过时。This implementation is empty.<T> void
beforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult)
已过时。This implementation is empty.<T> boolean
handleError(NativeWebRequest request, DeferredResult<T> deferredResult, Throwable t)
已过时。This implementation returnstrue
by default allowing other interceptors to be given a chance to handle the error.<T> boolean
handleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult)
已过时。This implementation returnstrue
by default allowing other interceptors to be given a chance to handle the timeout.<T> void
postProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult)
已过时。This implementation is empty.<T> void
preProcess(NativeWebRequest request, DeferredResult<T> deferredResult)
已过时。This implementation is empty.
构造器详细资料
DeferredResultProcessingInterceptorAdapter
public DeferredResultProcessingInterceptorAdapter()
已过时。
方法详细资料
beforeConcurrentHandling
public <T> void beforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
已过时。This implementation is empty.- 指定者:
beforeConcurrentHandling
在接口中DeferredResultProcessingInterceptor
- 参数:
request
- the current requestdeferredResult
- the DeferredResult for the current request- 抛出:
Exception
- in case of errors
preProcess
public <T> void preProcess(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
已过时。This implementation is empty.- 指定者:
preProcess
在接口中DeferredResultProcessingInterceptor
- 参数:
request
- the current requestdeferredResult
- the DeferredResult for the current request- 抛出:
Exception
- in case of errors
postProcess
public <T> void postProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult) throws Exception
已过时。This implementation is empty.- 指定者:
postProcess
在接口中DeferredResultProcessingInterceptor
- 参数:
request
- the current requestdeferredResult
- the DeferredResult for the current requestconcurrentResult
- the result to which theDeferredResult
- 抛出:
Exception
- in case of errors
handleTimeout
public <T> boolean handleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
已过时。This implementation returnstrue
by default allowing other interceptors to be given a chance to handle the timeout.- 指定者:
handleTimeout
在接口中DeferredResultProcessingInterceptor
- 参数:
request
- the current requestdeferredResult
- the DeferredResult for the current request; if theDeferredResult
is set, then concurrent processing is resumed and subsequent interceptors are not invoked- 返回:
true
if processing should continue, orfalse
if other interceptors should not be invoked- 抛出:
Exception
- in case of errors
handleError
public <T> boolean handleError(NativeWebRequest request, DeferredResult<T> deferredResult, Throwable t) throws Exception
已过时。This implementation returnstrue
by default allowing other interceptors to be given a chance to handle the error.- 指定者:
handleError
在接口中DeferredResultProcessingInterceptor
- 参数:
request
- the current requestdeferredResult
- the DeferredResult for the current request; if theDeferredResult
is set, then concurrent processing is resumed and subsequent interceptors are not invokedt
- the error that occurred while request processing- 返回:
true
if error handling should continue, orfalse
if other interceptors should by bypassed and not be invoked- 抛出:
Exception
- in case of errors
afterCompletion
public <T> void afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
已过时。This implementation is empty.- 指定者:
afterCompletion
在接口中DeferredResultProcessingInterceptor
- 参数:
request
- the current requestdeferredResult
- the DeferredResult for the current request- 抛出:
Exception
- in case of errors