Introduce Ordered Filter and WebFilter interfaces

Add `Ordered` variants of `javax.servlet.Filter` and
`org.springframework.web.server.WebFilter` mainly so that we can
deprecate `FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER`.

Closes gh-14793
This commit is contained in:
Phillip Webb
2018-10-11 23:11:47 -07:00
parent d6df7cf324
commit d102e0d7f7
13 changed files with 99 additions and 26 deletions

View File

@@ -3063,7 +3063,7 @@ If a specific order is required, you should avoid configuring a Filter that read
request body at `Ordered.HIGHEST_PRECEDENCE`, since it might go against the character
encoding configuration of your application. If a Servlet filter wraps the request, it
should be configured with an order that is less than or equal to
`FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER`.
`OrderedFilter.REQUEST_WRAPPER_FILTER_MAX_ORDER`.