Interface PropagateResponse

  • All Known Implementing Classes:
    PropagateOnStatus

    public interface PropagateResponse
    Allows for propagation depending on the state of a response. If applied to an HttpExecution the execution will call the propagate(HttpResponse) method. The method will either throw a ClientResponseException variant or do nothing letting the execution code handle like normal
    Author:
    Jeremy Unruh
    • Method Detail

      • propagate

        void propagate​(HttpResponse response)
        Called to allow for optional exception propagation depending on the HttpResponse state
        Parameters:
        response - the http response
        Throws:
        ClientResponseException - variant if execution deemed a failure