mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-23 22:57:29 -04:00
Adds a new `RestInterceptor` interface and converts `RestServerActionPlugin.getRestHandlerInterceptor` to return this new type instead of a wrapping function. This has the following benefits: - Less object creation, there is 1 instance of the interceptor class (see `SecurityRestFilter`) rather than an instance per handler - More control over the sequence of steps in processing a request. The explicit interceptor separates it from the deprecation handler or any validation that might be needed, and the controller can be intentional about the order in which these operations are applied. |
||
---|---|---|
.. | ||
src/javaRestTest/java | ||
build.gradle |