Class PolicyCompleter

    • Method Detail

      • completed

        public PolicyCompleter.CompletionState completed​(HttpResponse response)
        The method to notify the successful completion of result interception.

        This notification indicates the current policy's completion of result interception. It signals that the pipeline can invoke the previous policy for it to intercept the response.

        Parameters:
        response - The response.
        Returns:
        The completion state.
      • completedError

        public PolicyCompleter.CompletionState completedError​(java.lang.Throwable error)
        The method to notify that interception is completed with error.

        This notification indicates the current policy's completion of result interception. It signals that the pipeline can invoke the previous policy for it to intercept the error.

        Parameters:
        error - The error.
        Returns:
        The completion state.