getForObject

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

Retrieve a representation by doing a GET on the specified URL. The response (if any) is converted and returned.

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

Return

the converted object

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> getForObject(url: String, responseType: Class<T>, urlVariables: Map<String, out Any>): T

Retrieve a representation by doing a GET on the URI template. The response (if any) is converted and returned.

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> getForObject(url: URI, responseType: Class<T>): T

Retrieve a representation by doing a GET on the URL . The response (if any) is converted and returned.

Return

the converted object

Parameters

url

the URL

responseType

the type of the return value

<T>

the type of the return value

See also