RouteSelectorEvaluation
data class RouteSelectorEvaluation
Represents a result of a route evaluation against a call
Parameters
succeeded
- indicates if a route matches current RoutingResolveContext
quality
- indicates quality of this route as compared to other sibling routes
parameters
- is an instance of Parameters with parameters filled by RouteSelector
segmentIncrement
- is a value indicating how many path segments has been consumed by a selector
Constructors
RouteSelectorEvaluation( Represents a result of a route evaluation against a call |
Properties
val parameters: Parameters is an instance of Parameters with parameters filled by RouteSelector |
|
val quality: Double indicates quality of this route as compared to other sibling routes |
|
val segmentIncrement: Int is a value indicating how many path segments has been consumed by a selector |
|
val succeeded: Boolean indicates if a route matches current RoutingResolveContext |
Companion Object Properties
val Constant: RouteSelectorEvaluation Route evaluation succeeded for a constant value |
|
val ConstantPath: RouteSelectorEvaluation Route evaluation succeeded for a single path segment with a constant value |
|
val Failed: RouteSelectorEvaluation Route evaluation failed to succeed, route doesn’t match a context |
|
val Missing: RouteSelectorEvaluation Route evaluation succeeded for a missing optional value |
|
val WildcardPath: RouteSelectorEvaluation Route evaluation succeeded for a wildcard path segment |
|
const val qualityConstant: Double Quality of RouteSelectorEvaluation when a constant value has matched |
|
const val qualityMissing: Double Quality of RouteSelectorEvaluation when an optional parameter was missing |
|
const val qualityParameter: Double Quality of RouteSelectorEvaluation when a parameter has matched |
|
const val qualityTailcard: Double Quality of RouteSelectorEvaluation when a tailcard match has occurred |
|
const val qualityWildcard: Double Quality of RouteSelectorEvaluation when a wildcard has matched |