Interface PostInvocationInterceptor

    • Method Detail

      • afterRequest

        void afterRequest​(ClientRequestContext requestContext,
                          ClientResponseContext responseContext)
        The method is invoked after a request when no Throwable is thrown, or the Throwables are resolved by previous PostInvocationInterceptor.
        Parameters:
        requestContext - the request context.
        responseContext - the response context of the original Response or response context defined by the new resolving Response.
      • onException

        void onException​(ClientRequestContext requestContext,
                         PostInvocationInterceptor.ExceptionContext exceptionContext)
        The method is invoked after a Throwable is caught during the client request chain processing.
        Parameters:
        requestContext - the request context.
        exceptionContext - the context available to handle the caught Throwables.