Interface RestClient.RequestHeadersSpec.ExchangeFunction<T>

Type Parameters:
T - the type the response will be transformed to
Enclosing interface:
RestClient.RequestHeadersSpec<S extends RestClient.RequestHeadersSpec<S>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RestClient.RequestHeadersSpec.ExchangeFunction<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    exchange(HttpRequest clientRequest, ClientHttpResponse clientResponse)
    Exchange the given response into a type T.
  • Method Details

    • exchange

      T exchange(HttpRequest clientRequest, ClientHttpResponse clientResponse) throws IOException
      Exchange the given response into a type T.
      Parameters:
      clientRequest - the request
      clientResponse - the response
      Returns:
      the exchanged type
      Throws:
      IOException - in case of I/O errors