PathSegmentOptionalParameterRouteSelector
data class PathSegmentOptionalParameterRouteSelector(name: String, prefix: String?, suffix: String?) : RouteSelector
Content copied to clipboard
Evaluates a route against an optional parameter path segment and captures its value, if any.
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
Content copied to clipboard
Link copied to clipboard
fun PathSegmentOptionalParameterRouteSelector(name: String, prefix: String? = null, suffix: String? = null)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun evaluate(context: RoutingResolveContext, segmentIndex: Int): RouteSelectorEvaluation
Content copied to clipboard
Evaluates this selector against context and a path segment at segmentIndex.