I'm starting to dig into Scalatra but I have some extensive experience in Jersey. One of the things I'm struggling with is how to get multiple filters for a controller in Scalatra? For example, I have three unique filters:
- CSRF
- XSS
- Authentication
Some of my controllers will only need 2 and 3, all will need 1, and others will only need 3. In the future I may have more filters. I understand the before()
and after()
methods, but those don't seem to help with the chaining I'm used to with Jersey. Can someone help shed light on what I should be looking for?