RoutingResolveTrace

class RoutingResolveTrace(call: ApplicationCall, segments: List<String>)

Represents the trace of routing resolution process for diagnostics.

Parameters

call

instance of ApplicationCall for which this trace was created.

segments

list of Strings for each path segment supplied for the routing resolution.

Constructors

Link copied to clipboard
fun RoutingResolveTrace(call: ApplicationCall, segments: List<String>)

Functions

Link copied to clipboard
fun addCandidate(trait: List<RoutingResolveResult.Success>)

Add candidate for resolving.

Link copied to clipboard
fun begin(route: Route, segmentIndex: Int)

Begins processing a route at segment with segmentIndex in segments.

Link copied to clipboard
fun buildText(): String

Builds detailed text description for this trace, including all entries.

Link copied to clipboard
fun finish(route: Route, segmentIndex: Int, result: RoutingResolveResult)

Finishes processing a route at segment with segmentIndex in segments with the given result.

Link copied to clipboard
fun registerFinalResult(result: RoutingResolveResult)
Link copied to clipboard
fun skip(route: Route, segmentIndex: Int, result: RoutingResolveResult)

Begins and finishes processing a route at segment with segmentIndex in segments with the given result.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val call: ApplicationCall
Link copied to clipboard
val segments: List<String>