@Filter(value="/**") public class EndpointsFilter extends OncePerRequestHttpServerFilter
Endpoint
requests which have sensitive true.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
EndpointsFilter(EndpointSensitivityProcessor endpointSensitivityProcessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Publisher<MutableHttpResponse<?>> |
doFilterOnce(HttpRequest<?> request,
ServerFilterChain chain)
Returns 401 if the route is a match for an endpoint with sensitive true.
|
int |
getOrder() |
doFilter, getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doFilter
public EndpointsFilter(EndpointSensitivityProcessor endpointSensitivityProcessor)
endpointSensitivityProcessor
- The processor that resolves endpoint sensitivityprotected Publisher<MutableHttpResponse<?>> doFilterOnce(HttpRequest<?> request, ServerFilterChain chain)
doFilterOnce
in class OncePerRequestHttpServerFilter
request
- The HttpRequest
instancechain
- The ServerFilterChain
instancePublisher
for the Http responsepublic int getOrder()