@Deprecated public abstract class DeferredResultProcessingInterceptorAdapter extends Object implements DeferredResultProcessingInterceptor
DeferredResultProcessingInterceptor
interface for simplified implementation of individual methods.Constructor and Description |
---|
DeferredResultProcessingInterceptorAdapter()
Deprecated.
|
Modifier and Type | Method and 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 returns
true 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 returns
true 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.
|
public DeferredResultProcessingInterceptorAdapter()
public <T> void beforeConcurrentHandling(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
beforeConcurrentHandling
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestException
- in case of errorspublic <T> void preProcess(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
preProcess
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestException
- in case of errorspublic <T> void postProcess(NativeWebRequest request, DeferredResult<T> deferredResult, Object concurrentResult) throws Exception
postProcess
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestconcurrentResult
- the result to which the DeferredResult
Exception
- in case of errorspublic <T> boolean handleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
true
by default allowing other interceptors
to be given a chance to handle the timeout.handleTimeout
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current request; if the
DeferredResult
is set, then concurrent processing is resumed and
subsequent interceptors are not invokedtrue
if processing should continue, or false
if
other interceptors should not be invokedException
- in case of errorspublic <T> boolean handleError(NativeWebRequest request, DeferredResult<T> deferredResult, Throwable t) throws Exception
true
by default allowing other interceptors
to be given a chance to handle the error.handleError
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current request; if the
DeferredResult
is set, then concurrent processing is resumed and
subsequent interceptors are not invokedt
- the error that occurred while request processingtrue
if error handling should continue, or false
if
other interceptors should by bypassed and not be invokedException
- in case of errorspublic <T> void afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult) throws Exception
afterCompletion
in interface DeferredResultProcessingInterceptor
request
- the current requestdeferredResult
- the DeferredResult for the current requestException
- in case of errors