类 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 theDeferredResultProcessingInterceptorinterface for simplified implementation of individual methods.- 从以下版本开始:
- 3.2
- 作者:
- Rossen Stoyanchev, Rob Winch
构造器概要
构造器 构造器 说明 DeferredResultProcessingInterceptorAdapter()已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 <T> voidafterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult)已过时。This implementation is empty.<T> voidbeforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult)已过时。This implementation is empty.<T> booleanhandleError(NativeWebRequest request, DeferredResult<T> deferredResult, Throwable t)已过时。This implementation returnstrueby default allowing other interceptors to be given a chance to handle the error.<T> booleanhandleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult)已过时。This implementation returnstrueby default allowing other interceptors to be given a chance to handle the timeout.<T> voidpostProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult)已过时。This implementation is empty.<T> voidpreProcess(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 returnstrueby 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 theDeferredResultis set, then concurrent processing is resumed and subsequent interceptors are not invoked- 返回:
trueif processing should continue, orfalseif 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 returnstrueby 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 theDeferredResultis set, then concurrent processing is resumed and subsequent interceptors are not invokedt- the error that occurred while request processing- 返回:
trueif error handling should continue, orfalseif 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