I have a component that should be able to access the @RequestBody object that is sent within a request and check if it’s of a certain type.
Is there a way to do this, without deserializing the object again and without manually saving the @RequestBody somewhere when the controller method (where the @RequestBody parameter is declared) is called?
I’d like a solution that works independently of the rest controller and without modifying it’s methods.
Thanks!