Interface PostInvocationInterceptor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  PostInvocationInterceptor.ExceptionContext
      The context providing information when the Throwable (typically, the RuntimeException) is caught.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterRequest​(jakarta.ws.rs.client.ClientRequestContext requestContext, jakarta.ws.rs.client.ClientResponseContext responseContext)
      The method is invoked after a request when no Throwable is thrown, or the Throwables are resolved by previous PostInvocationInterceptor.
      void onException​(jakarta.ws.rs.client.ClientRequestContext requestContext, PostInvocationInterceptor.ExceptionContext exceptionContext)
      The method is invoked after a Throwable is caught during the client request chain processing.
    • Method Detail

      • afterRequest

        void afterRequest​(jakarta.ws.rs.client.ClientRequestContext requestContext,
                          jakarta.ws.rs.client.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​(jakarta.ws.rs.client.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.