I want to receive some information per request, so I think instead of having a function for each request and obtaining those information from requests separately, it's better to have a filter.
So every request shall pass that filter and I gain what I want.
The question is: How can I write a custom filter?
Suppose it is not like any predefined spring security filters and it is totally new.