spring-framework
5.3.39

# Package org.springframework.web.client

## Functions

exchange
Link copied to clipboard
inline fun <T> RestOperations.exchange(requestEntity: RequestEntity<*>): ResponseEntity<T>
Content copied to clipboard
inline fun <T> RestOperations.exchange(url: URI, method: HttpMethod, requestEntity: HttpEntity<*>? = null): ResponseEntity<T>
Content copied to clipboard
inline fun <T> RestOperations.exchange(url: String, method: HttpMethod, requestEntity: HttpEntity<*>? = null, vararg uriVariables: Any): ResponseEntity<T>
Content copied to clipboard
inline fun <T> RestOperations.exchange(url: String, method: HttpMethod, requestEntity: HttpEntity<*>? = null, uriVariables: Map<String, *>): ResponseEntity<T>
Content copied to clipboard

Extension for RestOperations.exchange providing an `exchange<Foo>(...)` variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

getForEntity
Link copied to clipboard
inline fun <T> RestOperations.getForEntity(url: URI): ResponseEntity<T>
Content copied to clipboard
inline fun <T> RestOperations.getForEntity(url: String, vararg uriVariables: Any): ResponseEntity<T>
Content copied to clipboard
inline fun <T> RestOperations.getForEntity(url: String, uriVariables: Map<String, *>): ResponseEntity<T>
Content copied to clipboard

Extension for RestOperations.getForEntity providing a `getForEntity<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.

getForObject
Link copied to clipboard
inline fun <T> RestOperations.getForObject(url: URI): T
Content copied to clipboard
inline fun <T> RestOperations.getForObject(url: String, vararg uriVariables: Any): T
Content copied to clipboard
inline fun <T> RestOperations.getForObject(url: String, uriVariables: Map<String, Any?>): T
Content copied to clipboard

Extension for RestOperations.getForObject providing a `getForObject<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.

patchForObject
Link copied to clipboard
inline fun <T> RestOperations.patchForObject(url: URI, request: Any? = null): T
Content copied to clipboard
inline fun <T> RestOperations.patchForObject(url: String, request: Any? = null, vararg uriVariables: Any): T
Content copied to clipboard
inline fun <T> RestOperations.patchForObject(url: String, request: Any? = null, uriVariables: Map<String, *>): T
Content copied to clipboard

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.

postForEntity
Link copied to clipboard
inline fun <T> RestOperations.postForEntity(url: URI, request: Any? = null): ResponseEntity<T>
Content copied to clipboard
inline fun <T> RestOperations.postForEntity(url: String, request: Any? = null, vararg uriVariables: Any): ResponseEntity<T>
Content copied to clipboard
inline fun <T> RestOperations.postForEntity(url: String, request: Any? = null, uriVariables: Map<String, *>): ResponseEntity<T>
Content copied to clipboard

Extension for RestOperations.postForEntity providing a `postForEntity<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.

postForObject
Link copied to clipboard
inline fun <T> RestOperations.postForObject(url: URI, request: Any? = null): T
Content copied to clipboard
inline fun <T> RestOperations.postForObject(url: String, request: Any? = null, vararg uriVariables: Any): T
Content copied to clipboard
inline fun <T> RestOperations.postForObject(url: String, request: Any? = null, uriVariables: Map<String, *>): T
Content copied to clipboard

Extension for RestOperations.postForObject providing a `postForObject<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.