Package org.springframework.web.client
Interface RestClient.RequestHeadersSpec.RequiredValueExchangeFunction<T>
- Type Parameters:
- T- the type the response will be transformed to
- All Superinterfaces:
- RestClient.RequestHeadersSpec.ExchangeFunction<T>
- 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.RequiredValueExchangeFunction<T>
extends RestClient.RequestHeadersSpec.ExchangeFunction<T>
Variant of 
RestClient.RequestHeadersSpec.ExchangeFunction returning a non-null required value.- Since:
- 6.2.6
- 
Method SummaryModifier and TypeMethodDescriptionexchange(HttpRequest clientRequest, RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse clientResponse) Exchange the given response into a value of typeT.
- 
Method Details- 
exchangeT exchange(HttpRequest clientRequest, RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse clientResponse) throws IOException Exchange the given response into a value of typeT.- Specified by:
- exchangein interface- RestClient.RequestHeadersSpec.ExchangeFunction<T>
- Parameters:
- clientRequest- the request
- clientResponse- the response
- Returns:
- the exchanged value, never null
- Throws:
- IOException- in case of I/O errors
 
 
-