Companion

object Companion

Properties

Link copied to clipboard

Route evaluation succeeded for a constant value.

Link copied to clipboard

Route evaluation succeeded for a single path segment with a constant value.

Link copied to clipboard

Route evaluation failed to succeed, route doesn't match a context.

Link copied to clipboard

Route evaluation failed to succeed on a method selector.

Link copied to clipboard

Route evaluation failed to succeed on a query, header, or other parameter selector.

Link copied to clipboard

Route evaluation failed to succeed on a path selector.

Link copied to clipboard

Route evaluation succeeded for a missing optional value.

Link copied to clipboard
const val qualityConstant: Double = 1.0

Quality of RouteSelectorEvaluation when a constant value is matched.

Link copied to clipboard
const val qualityFailedMethod: Double = 0.02

Quality of RouteSelectorEvaluation when an HTTP method doesn't match.

Link copied to clipboard
const val qualityFailedParameter: Double = 0.01

Quality of RouteSelectorEvaluation when parameter (query, header, etc) doesn't match.

Link copied to clipboard

Quality of RouteSelectorEvaluation when a HTTP method parameter is matched.

Link copied to clipboard
const val qualityMissing: Double = 0.2

Quality of RouteSelectorEvaluation when an optional parameter is missing.

Link copied to clipboard
const val qualityParameter: Double = 0.8

Generic quality of RouteSelectorEvaluation to use as reference when some specific parameter is matched.

Link copied to clipboard

Quality of RouteSelectorEvaluation when a parameter with prefix or suffix is matched.

Link copied to clipboard

Quality of RouteSelectorEvaluation when a path parameter is matched.

Link copied to clipboard
const val qualityQueryParameter: Double = 1.0

Quality of RouteSelectorEvaluation when a query parameter is matched.

Link copied to clipboard
const val qualityTailcard: Double = 0.1

Quality of RouteSelectorEvaluation when a tailcard match is occurred.

Link copied to clipboard

Quality of RouteSelectorEvaluation that doesn't have its own quality but uses quality of its children.

Link copied to clipboard
const val qualityWildcard: Double = 0.5

Quality of RouteSelectorEvaluation when a wildcard is matched.

Link copied to clipboard

Route evaluation succeeded for a qualityTransparent value. Useful for helper DSL methods that may wrap routes but should not change priority of routing.

Link copied to clipboard

Route evaluation succeeded for a wildcard path segment.

Functions

Link copied to clipboard
operator fun invoke(succeeded: Boolean, quality: Double, parameters: Parameters = Parameters.Empty, segmentIncrement: Int = 0): RouteSelectorEvaluation