Reputation: 512
With Servlet API we can write filters to modify the request and response.If I use Play2 how can I achieve this.
Upvotes: 1
Views: 494
Reputation: 741
There are possible ways to do that:
This is very similar to Servlet filters. If you take a look at the examples provided in the docs you will get the idea.
This allows you to hook into application start/stop events, specify error page or handle missing actions
Upvotes: 3