title: How access WebSession in WebFlux services?
body: <p>I'm using spring-webflux, And I want to use <a href="https://docs.spring.io/spring-session/docs/current-SNAPSHOT/reference/html/websession.html" rel="nofollow noreferrer">WebSession</a> in some different classes for one request. For example: Application has some analyze service. Clients want to run some of them. They send a request and then in controller we run something like the following:</p>
  
  <pre><code>classService1.analyze()
  classService2.analyze()
  classService3.analyze()
  </code></pre>
  
  <p>Now, In Class Services, they may need some WebSession information(such as client Ip, client session attributes and .etc). There is no way except below example to do this?</p>
  
  <pre><code>@RestController
  class AnalyzeController() {
  
     @Autowired
     private ClassService1 classService1
  
     // Other injected class services
  
     @PostMapping("/analyze")
     public void analyze(WebSession webSession){
        classService1.analyze(webSession)
        classService2.analyze(webSession)
        // ...
     }
  }
  </code></pre>
  
  <p>I don't want to get webSession form controller and then send it to all my services, I want a possibility to inject WebSession in my services(like <code>@Autowired WebSession webSession</code>), Or I want to use WebSession in AOP. Is it possible? If yes, How? If not, What's best way to send WebSession to services?</p>