Package org.springframework.security.web
Class ObservationFilterChainDecorator
java.lang.Object
org.springframework.security.web.ObservationFilterChainDecorator
- All Implemented Interfaces:
FilterChainProxy.FilterChainDecorator
public final class ObservationFilterChainDecorator
extends Object
implements FilterChainProxy.FilterChainDecorator
A
FilterChainProxy.FilterChainDecorator that
wraps the chain in before and after observations- Since:
- 6.0
-
Constructor Summary
ConstructorsConstructorDescriptionObservationFilterChainDecorator(io.micrometer.observation.ObservationRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.FilterChaindecorate(jakarta.servlet.FilterChain original) Provide a newFilterChainthat accounts for needed security considerations when there are no security filters.jakarta.servlet.FilterChainProvide a newFilterChainthat accounts for the provided filters as well as the original filter chain.
-
Constructor Details
-
ObservationFilterChainDecorator
public ObservationFilterChainDecorator(io.micrometer.observation.ObservationRegistry registry)
-
-
Method Details
-
decorate
public jakarta.servlet.FilterChain decorate(jakarta.servlet.FilterChain original) Description copied from interface:FilterChainProxy.FilterChainDecoratorProvide a newFilterChainthat accounts for needed security considerations when there are no security filters.- Specified by:
decoratein interfaceFilterChainProxy.FilterChainDecorator- Parameters:
original- the originalFilterChain- Returns:
- a security-enabled
FilterChain
-
decorate
public jakarta.servlet.FilterChain decorate(jakarta.servlet.FilterChain original, List<jakarta.servlet.Filter> filters) Description copied from interface:FilterChainProxy.FilterChainDecoratorProvide a newFilterChainthat accounts for the provided filters as well as the original filter chain.- Specified by:
decoratein interfaceFilterChainProxy.FilterChainDecorator- Parameters:
original- the originalFilterChainfilters- the security filters- Returns:
- a security-enabled
FilterChainthat includes the provided filters
-