From 6548cee20a6df2dca88d205f17478f16599be220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Tue, 12 Sep 2023 19:00:24 +0200 Subject: [PATCH] Document CoWebFilter.COROUTINE_CONTEXT_ATTRIBUTE See gh-27522 --- .../kotlin/org/springframework/web/server/CoWebFilter.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-web/src/main/kotlin/org/springframework/web/server/CoWebFilter.kt b/spring-web/src/main/kotlin/org/springframework/web/server/CoWebFilter.kt index 9f7bc9df94d7..5ff3ecae1cec 100644 --- a/spring-web/src/main/kotlin/org/springframework/web/server/CoWebFilter.kt +++ b/spring-web/src/main/kotlin/org/springframework/web/server/CoWebFilter.kt @@ -53,6 +53,11 @@ abstract class CoWebFilter : WebFilter { companion object { + /** + * Name of the [ServerWebExchange] attribute that contains the + * [kotlin.coroutines.CoroutineContext] to be passed to the + * [org.springframework.web.reactive.result.method.InvocableHandlerMethod]. + */ @JvmField val COROUTINE_CONTEXT_ATTRIBUTE = CoWebFilter::class.java.getName() + ".context" }