title: How can I modify the object of a post call in filter. Spring boot
body: <p>I have a filter in my application</p>
  
  <pre><code>@Component
  @Order(2)
  public class RequestResponseLoggingFilter implements Filter {
  
      @Override
      public void doFilter(
        ServletRequest request, 
        ServletResponse response, 
        FilterChain chain) throws IOException, ServletException {
  
          HttpServletRequest req = (HttpServletRequest) request;
          HttpServletResponse res = (HttpServletResponse) response;
          // SET VALUE OF OBJECT
      }
  
      // other methods
  }
  </code></pre>
  
  <p>I have a Restcall which uses a class.</p>
  
  <pre><code>@RequestMapping
  Class Test{
    @PostMapping("/test")
    public void postEntry(@Valid @RequestBody Testing testing){
    }
  }
  
  Class Testing{
  @NotNull(message="ERROR")  
  String id;
  
  ....
  }
  </code></pre>
  
  <p>I get the id in my filter and I would like to set the id of Testing class in my Filter. Is this possible?</p>