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

    Constructors
    Constructor
    Description
    ObservationFilterChainDecorator(io.micrometer.observation.ObservationRegistry registry)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.servlet.FilterChain
    decorate(jakarta.servlet.FilterChain original)
    Provide a new FilterChain that accounts for needed security considerations when there are no security filters.
    jakarta.servlet.FilterChain
    decorate(jakarta.servlet.FilterChain original, List<jakarta.servlet.Filter> filters)
    Provide a new FilterChain that accounts for the provided filters as well as teh original filter chain.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 new FilterChain that accounts for needed security considerations when there are no security filters.
      Specified by:
      decorate in interface FilterChainProxy.FilterChainDecorator
      Parameters:
      original - the original FilterChain
      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 new FilterChain that accounts for the provided filters as well as teh original filter chain.
      Specified by:
      decorate in interface FilterChainProxy.FilterChainDecorator
      Parameters:
      original - the original FilterChain
      filters - the security filters
      Returns:
      a security-enabled FilterChain that includes the provided filters