Interface RestRequestHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface RestRequestHandler
    A RestRequestHandler handles a REST request on the RestClient instance's side to do the actual technical implementation of sending that request (or mocking the send-out of a request).
    • Method Detail

      • onRestRequest

        RestResponse onRestRequest​( aHttpClientRequest)
        Hook receiving a prepared RestCallerBuilder instance to be used to do the technical request with the technology chosen by the implementing sub-class.
        aHttpClientRequest - The prepared HttpClientRequest.
        The resulting RestResponse.
        Throws: - thrown by a HTTP response handling system in case of some unexpected response.