Class DeferredResultProcessingInterceptorAdapter
- java.lang.Object
- org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapter
- All Implemented Interfaces:
DeferredResultProcessingInterceptor
@Deprecated public abstract class DeferredResultProcessingInterceptorAdapter extends Object implements DeferredResultProcessingInterceptor
Deprecated.as of 5.0 where DeferredResultProcessingInterceptor has default methodsAbstract adapter class for theDeferredResultProcessingInterceptor
interface for simplified implementation of individual methods.- Since:
- 3.2
- Author:
- Rossen Stoyanchev, Rob Winch
Constructor Summary
Constructors Constructor Description DeferredResultProcessingInterceptorAdapter()
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> void
afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult)
Deprecated.This implementation is empty.<T> void
beforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult)
Deprecated.This implementation is empty.<T> boolean
handleError(NativeWebRequest request, DeferredResult<T> deferredResult, Throwable t)
Deprecated.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)
Deprecated.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)
Deprecated.This implementation is empty.<T> void
preProcess(NativeWebRequest request, DeferredResult<T> deferredResult)
Deprecated.This implementation is empty.
Constructor Detail
DeferredResultProcessingInterceptorAdapter
public DeferredResultProcessingInterceptorAdapter()
Deprecated.
Method Detail
beforeConcurrentHandling
public <T> void beforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
Deprecated.This implementation is empty.- Specified by:
beforeConcurrentHandling
in interfaceDeferredResultProcessingInterceptor
- Parameters:
request
- the current requestdeferredResult
- the DeferredResult for the current request- Throws:
Exception
- in case of errors
preProcess
public <T> void preProcess(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
Deprecated.This implementation is empty.- Specified by:
preProcess
in interfaceDeferredResultProcessingInterceptor
- Parameters:
request
- the current requestdeferredResult
- the DeferredResult for the current request- Throws:
Exception
- in case of errors
postProcess
public <T> void postProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult) throws Exception
Deprecated.This implementation is empty.- Specified by:
postProcess
in interfaceDeferredResultProcessingInterceptor
- Parameters:
request
- the current requestdeferredResult
- the DeferredResult for the current requestconcurrentResult
- the result to which theDeferredResult
- Throws:
Exception
- in case of errors
handleTimeout
public <T> boolean handleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
Deprecated.This implementation returnstrue
by default allowing other interceptors to be given a chance to handle the timeout.- Specified by:
handleTimeout
in interfaceDeferredResultProcessingInterceptor
- Parameters:
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- Returns:
true
if processing should continue, orfalse
if other interceptors should not be invoked- Throws:
Exception
- in case of errors
handleError
public <T> boolean handleError(NativeWebRequest request, DeferredResult<T> deferredResult, Throwable t) throws Exception
Deprecated.This implementation returnstrue
by default allowing other interceptors to be given a chance to handle the error.- Specified by:
handleError
in interfaceDeferredResultProcessingInterceptor
- Parameters:
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- Returns:
true
if error handling should continue, orfalse
if other interceptors should by bypassed and not be invoked- Throws:
Exception
- in case of errors
afterCompletion
public <T> void afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
Deprecated.This implementation is empty.- Specified by:
afterCompletion
in interfaceDeferredResultProcessingInterceptor
- Parameters:
request
- the current requestdeferredResult
- the DeferredResult for the current request- Throws:
Exception
- in case of errors