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
ConstructorDescriptionObservationFilterChainDecorator
(io.micrometer.observation.ObservationRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.FilterChain
decorate
(jakarta.servlet.FilterChain original) Provide a newFilterChain
that accounts for needed security considerations when there are no security filters.jakarta.servlet.FilterChain
Provide a newFilterChain
that accounts for the provided filters as well as teh 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.FilterChainDecorator
Provide a newFilterChain
that accounts for needed security considerations when there are no security filters.- Specified by:
decorate
in 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.FilterChainDecorator
Provide a newFilterChain
that accounts for the provided filters as well as teh original filter chain.- Specified by:
decorate
in interfaceFilterChainProxy.FilterChainDecorator
- Parameters:
original
- the originalFilterChain
filters
- the security filters- Returns:
- a security-enabled
FilterChain
that includes the provided filters
-