getForEntity

open fun <T> getForEntity(url: String, responseType: Class<T>, urlVariables: Array<Any>): ResponseEntity<T>

Retrieve an entity by doing a GET on the specified URL. The response is converted and stored in an ResponseEntity.

URI Template variables are expanded using the given URI variables, if any.

Return

the entity

Parameters

url

the URL

responseType

the type of the return value

urlVariables

the variables to expand the template

<T>

the type of the return value

See also


open fun <T> getForEntity(url: String, responseType: Class<T>, urlVariables: Map<String, out Any>): ResponseEntity<T>

Retrieve a representation by doing a GET on the URI template. The response is converted and stored in an ResponseEntity.

URI Template variables are expanded using the given map.

Return

the converted object

Parameters

url

the URL

responseType

the type of the return value

urlVariables

the map containing variables for the URI template

<T>

the type of the return value

See also


open fun <T> getForEntity(url: URI, responseType: Class<T>): ResponseEntity<T>

Retrieve a representation by doing a GET on the URL . The response is converted and stored in an ResponseEntity.

Return

the converted object

Parameters

url

the URL

responseType

the type of the return value

<T>

the type of the return value

See also