Skip to content

//readium-shared/org.readium.r2.shared.util/URITemplate

URITemplate

[androidJvm]\ data class URITemplate(val uri: String)

A lightweight implementation of URI Template (RFC 6570).

Only handles simple cases, fitting Readium's use cases. See https://tools.ietf.org/html/rfc6570

Constructors

URITemplate [androidJvm]
fun URITemplate(uri: String)

Functions

Name Summary
expand [androidJvm]
fun expand(parameters: Map<String, String>): String
Expands the HREF by replacing URI template variables by the given parameters.

Properties

Name Summary
parameters [androidJvm]
val parameters: List<String>
List of URI template parameter keys, if the Link is templated.
uri [androidJvm]
val uri: String