1.2.2 Web Features - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.6
1.2.2 Web Features
New Interceptors API
In previous versions of Grails, filters were used to define logic that intercepts controller action execution.As of Grails 3.0, this API is deprecated and has been replaced by the new Interceptor API. An example interceptor can be seen below:class MyInterceptor { boolean before() { true } boolean after() { true } void afterView() { // no-op }}