PathSegmentParameterRouteSelector

data class PathSegmentParameterRouteSelector(name: String, prefix: String?, suffix: String?) : RouteSelector

Evaluates a route against a parameter path segment and captures its value.

Parameters

name

is the name of the parameter to capture values to

prefix

is an optional suffix

suffix

is an optional prefix

Constructors

Link copied to clipboard
fun PathSegmentParameterRouteSelector(name: String, prefix: String? = null, suffix: String? = null, hasTrailingSlash: Boolean)
Link copied to clipboard
fun PathSegmentParameterRouteSelector(name: String, prefix: String? = null, suffix: String? = null)

Functions

Link copied to clipboard
open override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation

Evaluates this selector against context and a path segment at segmentIndex.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val prefix: String? = null
Link copied to clipboard
val quality: Double
Link copied to clipboard
val suffix: String? = null