Href

An hypertext reference points to a resource in a Publication.

It is potentially templated, use resolve to get the actual URL.

Constructors

Link copied to clipboard
constructor(href: Url)

Creates an Href from a valid URL.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates whether this HREF is templated.

Link copied to clipboard

List of URI template parameter keys, if the HREF is templated.

Functions

Link copied to clipboard
fun Href.copy(transformer: ManifestTransformer): Href
Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun resolve(base: Url? = null, parameters: Map<String, String> = emptyMap()): Url

Returns the URL represented by this HREF, resolved to the given base URL.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)