public class ErrorDeferredResultProcessingInterceptor extends Object implements DeferredResultProcessingInterceptor
| Constructor and Description |
|---|
ErrorDeferredResultProcessingInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
handleError(NativeWebRequest request,
DeferredResult<T> result,
Throwable t)
Invoked from a container thread when an error occurred while processing an async request
before the
DeferredResult has been set. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterCompletion, beforeConcurrentHandling, handleTimeout, postProcess, preProcesspublic ErrorDeferredResultProcessingInterceptor()
public <T> boolean handleError(NativeWebRequest request, DeferredResult<T> result, Throwable t) throws Exception
DeferredResultProcessingInterceptorDeferredResult has been set. Implementations may invoke
setResult or
setErrorResult to resume processing.handleError in interface DeferredResultProcessingInterceptorrequest - the current requestresult - 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 processing should continue, or false if
other interceptors should not be invokedException - in case of errors