Class ObservationWebFilterChainDecorator

java.lang.Object
org.springframework.security.web.server.ObservationWebFilterChainDecorator
All Implemented Interfaces:
WebFilterChainProxy.WebFilterChainDecorator

public final class ObservationWebFilterChainDecorator extends Object implements WebFilterChainProxy.WebFilterChainDecorator
A WebFilterChainProxy.WebFilterChainDecorator that wraps the chain in before and after observations
Since:
6.0
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    org.springframework.web.server.WebFilterChain
    decorate(org.springframework.web.server.WebFilterChain original)
    Provide a new FilterChain that accounts for needed security considerations when there are no security filters.
    org.springframework.web.server.WebFilterChain
    decorate(org.springframework.web.server.WebFilterChain original, List<org.springframework.web.server.WebFilter> 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

    • ObservationWebFilterChainDecorator

      public ObservationWebFilterChainDecorator(io.micrometer.observation.ObservationRegistry registry)
  • Method Details

    • decorate

      public org.springframework.web.server.WebFilterChain decorate(org.springframework.web.server.WebFilterChain original)
      Description copied from interface: WebFilterChainProxy.WebFilterChainDecorator
      Provide a new FilterChain that accounts for needed security considerations when there are no security filters.
      Specified by:
      decorate in interface WebFilterChainProxy.WebFilterChainDecorator
      Parameters:
      original - the original FilterChain
      Returns:
      a security-enabled FilterChain
    • decorate

      public org.springframework.web.server.WebFilterChain decorate(org.springframework.web.server.WebFilterChain original, List<org.springframework.web.server.WebFilter> filters)
      Description copied from interface: WebFilterChainProxy.WebFilterChainDecorator
      Provide a new FilterChain that accounts for the provided filters as well as teh original filter chain.
      Specified by:
      decorate in interface WebFilterChainProxy.WebFilterChainDecorator
      Parameters:
      original - the original FilterChain
      filters - the security filters
      Returns:
      a security-enabled FilterChain that includes the provided filters