elasticsearch/qa/custom-rest-controller
Tim Vernum f3bc319b13
Convert RestWrapper to an explicit Interceptor (#104291)
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.
2024-01-18 17:08:06 -08:00
..
src/javaRestTest/java Convert RestWrapper to an explicit Interceptor (#104291) 2024-01-18 17:08:06 -08:00
build.gradle Make RestController pluggable (#98187) 2023-08-08 01:29:24 -04:00