RouteBase

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

A parameterized route with one route parameter

Inheritors

Constructors

Link copied to clipboard
constructor(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.

Properties

Link copied to clipboard
override val pattern: String

The pattern of the route