Builder

interface Builder

Inheritors

Functions

Link copied to clipboard
abstract fun appendEncodedPath(newSegment: String): Builder

Appends the given segment to the path.

Link copied to clipboard
abstract fun appendPath(newSegment: String): Builder

Encodes the given segment and appends it to the path.

Link copied to clipboard
abstract fun appendQueryParameter(key: String, value: String?): Builder

Encodes the key and value and then appends the parameter to the query string.

Link copied to clipboard
abstract fun authority(authority: String?): Builder

Encodes and sets the authority.

Link copied to clipboard
abstract fun build(): Uri

Constructs a Uri with the current attributes.

Link copied to clipboard
abstract fun clearQuery(): Builder

Clears the the previously set query.

Link copied to clipboard
abstract fun encodedAuthority(authority: String?): Builder

Sets the previously encoded authority.

Link copied to clipboard
abstract fun encodedFragment(fragment: String?): Builder

Sets the previously encoded fragment.

Link copied to clipboard
abstract fun encodedOpaquePart(opaquePart: String?): Builder

Sets the previously encoded opaque scheme-specific-part.

Link copied to clipboard
abstract fun encodedPath(path: String?): Builder

Sets the previously encoded path.

Link copied to clipboard
abstract fun encodedQuery(query: String?): Builder

Sets the previously encoded query.

Link copied to clipboard
abstract fun fragment(fragment: String?): Builder

Encodes and sets the fragment.

Link copied to clipboard
abstract fun opaquePart(opaquePart: String?): Builder

Encodes and sets the given opaque scheme-specific-part.

Link copied to clipboard
abstract fun path(path: String?): Builder

Sets the path. Leaves '/' characters intact but encodes others as necessary.

Link copied to clipboard
abstract fun query(query: String?): Builder

Encodes and sets the query.

Link copied to clipboard
abstract fun scheme(scheme: String?): Builder

Sets the scheme.