Route2

open class Route2(val pattern: String) : RouteBase

A parameterized route with two route parameter

Constructors

Link copied to clipboard
constructor(pattern: String)

Properties

Link copied to clipboard
override val pattern: String

The pattern of the route

Functions

Link copied to clipboard
fun build(p1: String, p2: String): String

Builds the uri with the given parameters

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.