Webflux 中 ServerWebExchange对象 如何设置session对话域值,可以使得HttpServletRequest获得?

问题遇到的现象和发生背景

如标题:Webflux 中 ServerWebExchange对象 如何设置session对话域值,可以使得HttpServletRequest获得?

问题相关代码

以两个过滤器为例

public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
        // 由此设置
        // exchange ....
        return chain.filter(exchange);
    }
protected void doFilterInternal(@NotNull HttpServletRequest request,
                                    @NotNull HttpServletResponse response,
                                    @NotNull FilterChain filterChain) {
        // 由此获得
        Object attribute = request.getSession().getAttribute("key");
}
我想要达到的结果

attribute对象为设置的session域内值

这exchange里面不都有嘛

img