data class PathSegmentOptionalParameterRouteSelector : RouteSelector
Evaluates a route against an optional parameter path segment and captures its value, if any
name
- is the name of the parameter to capture values to
prefix
- is an optional suffix
suffix
- is an optional prefix
PathSegmentOptionalParameterRouteSelector(name: String, prefix: String? = null, suffix: String? = null, hasTrailingSlash: Boolean) PathSegmentOptionalParameterRouteSelector(name: String, prefix: String? = null, suffix: String? = null)
Evaluates a route against an optional parameter path segment and captures its value, if any |
val name: String
is the name of the parameter to capture values to |
|
val prefix: String?
is an optional suffix |
|
val suffix: String?
is an optional prefix |
val quality: Double
indicates how good this selector is compared to siblings |
fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation
Evaluates this selector against context and a path segment at segmentIndex |
|
fun toString(): String |