public class ErrorDeferredResultProcessingInterceptor extends java.lang.Object implements DeferredResultProcessingInterceptor
Constructor and Description |
---|
ErrorDeferredResultProcessingInterceptor() |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
handleError(NativeWebRequest request,
DeferredResult<T> result,
java.lang.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, wait
afterCompletion, beforeConcurrentHandling, handleTimeout, postProcess, preProcess
public ErrorDeferredResultProcessingInterceptor()
public <T> boolean handleError(NativeWebRequest request, DeferredResult<T> result, java.lang.Throwable t) throws java.lang.Exception
DeferredResultProcessingInterceptor
DeferredResult
has been set. Implementations may invoke
setResult
or
setErrorResult
to resume processing.handleError
in interface DeferredResultProcessingInterceptor
request
- 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 invokedjava.lang.Exception
- in case of errors