org.springframework.web.context.request.async

Class DeferredResultProcessingInterceptorAdapter

  • java.lang.Object
    • org.springframework.web.context.request.async.DeferredResultProcessingInterceptorAdapter
    • Constructor Detail

      • DeferredResultProcessingInterceptorAdapter

        public DeferredResultProcessingInterceptorAdapter()
        Deprecated. 
    • Method Detail

      • preProcess

        public <T> void preProcess(NativeWebRequest request,
                                   DeferredResult<T> deferredResult)
                            throws java.lang.Exception
        Deprecated. 
        This implementation is empty.
        Specified by:
        preProcess in interface DeferredResultProcessingInterceptor
        Parameters:
        request - the current request
        deferredResult - the DeferredResult for the current request
        Throws:
        java.lang.Exception - in case of errors
      • postProcess

        public <T> void postProcess(NativeWebRequest request,
                                    DeferredResult<T> deferredResult,
                                    java.lang.Object concurrentResult)
                             throws java.lang.Exception
        Deprecated. 
        This implementation is empty.
        Specified by:
        postProcess in interface DeferredResultProcessingInterceptor
        Parameters:
        request - the current request
        deferredResult - the DeferredResult for the current request
        concurrentResult - the result to which the DeferredResult
        Throws:
        java.lang.Exception - in case of errors
      • handleTimeout

        public <T> boolean handleTimeout(NativeWebRequest request,
                                         DeferredResult<T> deferredResult)
                                  throws java.lang.Exception
        Deprecated. 
        This implementation returns true by default allowing other interceptors to be given a chance to handle the timeout.
        Specified by:
        handleTimeout in interface DeferredResultProcessingInterceptor
        Parameters:
        request - the current request
        deferredResult - the DeferredResult for the current request; if the DeferredResult is set, then concurrent processing is resumed and subsequent interceptors are not invoked
        Returns:
        true if processing should continue, or false if other interceptors should not be invoked
        Throws:
        java.lang.Exception - in case of errors
      • handleError

        public <T> boolean handleError(NativeWebRequest request,
                                       DeferredResult<T> deferredResult,
                                       java.lang.Throwable t)
                                throws java.lang.Exception
        Deprecated. 
        This implementation returns true by default allowing other interceptors to be given a chance to handle the error.
        Specified by:
        handleError in interface DeferredResultProcessingInterceptor
        Parameters:
        request - the current request
        deferredResult - the DeferredResult for the current request; if the DeferredResult is set, then concurrent processing is resumed and subsequent interceptors are not invoked
        t - the error that occurred while request processing
        Returns:
        true if error handling should continue, or false if other interceptors should by bypassed and not be invoked
        Throws:
        java.lang.Exception - in case of errors
      • afterCompletion

        public <T> void afterCompletion(NativeWebRequest request,
                                        DeferredResult<T> deferredResult)
                                 throws java.lang.Exception
        Deprecated. 
        This implementation is empty.
        Specified by:
        afterCompletion in interface DeferredResultProcessingInterceptor
        Parameters:
        request - the current request
        deferredResult - the DeferredResult for the current request
        Throws:
        java.lang.Exception - in case of errors