Interface Transport

All Known Implementing Classes:
RestClientTransport

public interface Transport
The transport layer that allows ApiClients to send requests.
  • Method Summary

    Modifier and Type Method Description
    JsonpMapper jsonpMapper()  
    <RequestT,​ ResponseT,​ ErrorT>
    ResponseT
    performRequest​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint)  
    <RequestT,​ ResponseT,​ ErrorT>
    java.util.concurrent.CompletableFuture<ResponseT>
    performRequestAsync​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint)  
  • Method Details

    • performRequest

      <RequestT,​ ResponseT,​ ErrorT> ResponseT performRequest​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint) throws java.io.IOException
      Throws:
      java.io.IOException
    • performRequestAsync

      <RequestT,​ ResponseT,​ ErrorT> java.util.concurrent.CompletableFuture<ResponseT> performRequestAsync​(RequestT request, Endpoint<RequestT,​ResponseT,​ErrorT> endpoint)
    • jsonpMapper

      JsonpMapper jsonpMapper()