data class RouteSelectorEvaluation
Represents a result of a route evaluation against a call
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
RouteSelectorEvaluation(succeeded: Boolean, quality: Double, parameters: Parameters = Parameters.Empty, segmentIncrement: Int = 0)
Represents a result of a route evaluation against a call |
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 |
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 qualityMethodParameter: Double
Quality of RouteSelectorEvaluation when a HTTP method parameter has matched |
|
const val qualityMissing: Double
Quality of RouteSelectorEvaluation when an optional parameter was missing |
|
const val qualityParameter: Double
Generic quality of RouteSelectorEvaluation to use as reference when some specific parameter has matched |
|
const val qualityParameterWithPrefixOrSuffix: Double
Quality of RouteSelectorEvaluation when a parameter with prefix or suffix has matched |
|
const val qualityPathParameter: Double
Quality of RouteSelectorEvaluation when a path parameter has matched |
|
const val qualityQueryParameter: Double
Quality of RouteSelectorEvaluation when a query parameter has matched |
|
const val qualityTailcard: Double
Quality of RouteSelectorEvaluation when a tailcard match has occurred |
|
const val qualityTransparent: Double
Quality of RouteSelectorEvaluation that doesn't have it's own priority but should delegate evaluation to it's children |
|
const val qualityWildcard: Double
Quality of RouteSelectorEvaluation when a wildcard has matched |