OptionalParameterRouteSelector

data class OptionalParameterRouteSelector : RouteSelector

Evaluates a route against an optional query parameter value and captures its value, if found

Parameters

name - is a name of the query parameter

Constructors

<init>

OptionalParameterRouteSelector(name: String)

Evaluates a route against an optional query parameter value and captures its value, if found

Properties

name

val name: String

is a name of the query parameter

Inherited Properties

quality

val quality: Double

indicates how good this selector is compared to siblings

Functions

evaluate

fun evaluate(
    context: RoutingResolveContext,
    segmentIndex: Int
): RouteSelectorEvaluation

Evaluates this selector against context and a path segment at segmentIndex

toString

fun toString(): String