RouteBase

abstract class RouteBase(val pattern: String, numParams: Int) : Route

A parameterized route with one route parameter

Constructors

Link copied to clipboard
fun RouteBase(pattern: String, numParams: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun buildUri(vararg routeParams: String): String

Builds a uri with the given routeParams

open override fun buildUri(routeParams: Map<String, String>, queryParams: Map<String, String>): String

Builds a uri with the given routeParams and queryParams

Link copied to clipboard
open override fun match(uri: String): Route.Match?

Tries to match the given uri against the pattern of the route.

Link copied to clipboard
open fun String.replacePlaceholder(placeholder: String, value: String): String

Internal helper for building uris

Properties

Link copied to clipboard
override val pattern: String

The pattern of the route

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard