spring-framework / org.springframework.web.client / exchange

exchange

inline fun <reified T : Any> RestOperations.exchange(url: String, method: HttpMethod, requestEntity: HttpEntity<*>, vararg uriVariables: Any): ResponseEntity<T>
inline fun <reified T : Any> RestOperations.exchange(url: String, method: HttpMethod, requestEntity: HttpEntity<*>, uriVariables: Map<String, *>): ResponseEntity<T>
inline fun <reified T : Any> RestOperations.exchange(url: URI, method: HttpMethod, requestEntity: HttpEntity<*>): ResponseEntity<T>
inline fun <reified T : Any> RestOperations.exchange(requestEntity: RequestEntity<*>): ResponseEntity<T>

Extension for RestOperations.exchange avoiding specifying the type parameter thanks to Kotlin reified type parameters.

Author
Jon Schneider

Author
Sebastien Deleuze

Since
5.0