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

patchForObject

fun <reified T> RestOperations.patchForObject(url: String, request: Any? = null, vararg uriVariables: Any): T
fun <reified T> RestOperations.patchForObject(url: String, request: Any? = null, uriVariables: Map<String, *>): T
fun <reified T> RestOperations.patchForObject(url: URI, request: Any? = null): T

Extension for RestOperations.patchForObject providing a patchForObject<Foo>(...) variant leveraging Kotlin reified type parameters. Like the original Java method, this extension is subject to type erasure. Use exchange if you need to retain actual generic type arguments.

Author
Sebastien Deleuze

Since
5.0.2