TaskBridgeRouteResolver

Produces URL paths for all TaskBridge HTTP and WebSocket endpoints.

Paths are resolved relative to TaskBridgeConfig.baseUrl. They must be path-only values: no scheme, authority, query string, or fragment. Consumers implement this interface to plug their own routing scheme.

Inheritors

Functions

Link copied to clipboard
abstract fun cancelTaskPath(context: Ctx, taskId: String): String

Path to cancel a task.

Link copied to clipboard
open fun createTaskMultipartPath(context: Ctx): String

Path to start a task with multipart input. Defaults to createTaskPath.

Link copied to clipboard
abstract fun createTaskPath(context: Ctx): String

Path to start a task with JSON input.

Link copied to clipboard
abstract fun pollEventsPath(context: Ctx, taskId: String): String

Path to poll for task events.

Link copied to clipboard
abstract fun streamEventsPath(context: Ctx, taskId: String): String

Path to the SSE endpoint for event streaming.

Link copied to clipboard
abstract fun submitActionPath(context: Ctx, taskId: String): String

Path to submit a user action for a suspended task.

Link copied to clipboard
abstract fun webSocketPath(context: Ctx): String

Path to the WebSocket endpoint for event streaming.