@Deprecated public abstract class DeferredResultProcessingInterceptorAdapter extends java.lang.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,
java.lang.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,
java.lang.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 java.lang.Exception
beforeConcurrentHandling in interface DeferredResultProcessingInterceptorrequest - the current requestdeferredResult - the DeferredResult for the current requestjava.lang.Exception - in case of errorspublic <T> void preProcess(NativeWebRequest request, DeferredResult<T> deferredResult) throws java.lang.Exception
preProcess in interface DeferredResultProcessingInterceptorrequest - the current requestdeferredResult - the DeferredResult for the current requestjava.lang.Exception - in case of errorspublic <T> void postProcess(NativeWebRequest request, DeferredResult<T> deferredResult, java.lang.Object concurrentResult) throws java.lang.Exception
postProcess in interface DeferredResultProcessingInterceptorrequest - the current requestdeferredResult - the DeferredResult for the current requestconcurrentResult - the result to which the DeferredResultjava.lang.Exception - in case of errorspublic <T> boolean handleTimeout(NativeWebRequest request, DeferredResult<T> deferredResult) throws java.lang.Exception
true by default allowing other interceptors
to be given a chance to handle the timeout.handleTimeout in interface DeferredResultProcessingInterceptorrequest - 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 invokedjava.lang.Exception - in case of errorspublic <T> boolean handleError(NativeWebRequest request, DeferredResult<T> deferredResult, java.lang.Throwable t) throws java.lang.Exception
true by default allowing other interceptors
to be given a chance to handle the error.handleError in interface DeferredResultProcessingInterceptorrequest - 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 invokedjava.lang.Exception - in case of errorspublic <T> void afterCompletion(NativeWebRequest request, DeferredResult<T> deferredResult) throws java.lang.Exception
afterCompletion in interface DeferredResultProcessingInterceptorrequest - the current requestdeferredResult - the DeferredResult for the current requestjava.lang.Exception - in case of errors