Class EndpointRequest.EndpointRequestMatcher

java.lang.Object
org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.EndpointRequestMatcher
All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
Enclosing class:
EndpointRequest

public static final class EndpointRequest.EndpointRequestMatcher extends org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
The request matcher used to match against actuator endpoints.
  • Method Details

    • excluding

      public EndpointRequest.EndpointRequestMatcher excluding(Class<?>... endpoints)
    • excluding

      public EndpointRequest.EndpointRequestMatcher excluding(String... endpoints)
    • excludingLinks

      public EndpointRequest.EndpointRequestMatcher excludingLinks()
    • withHttpMethod

      public EndpointRequest.EndpointRequestMatcher withHttpMethod(org.springframework.http.HttpMethod httpMethod)
      Restricts the matcher to only consider requests with a particular HTTP method.
      Parameters:
      httpMethod - the HTTP method to include
      Returns:
      a copy of the matcher further restricted to only match requests with the specified HTTP method
      Since:
      3.5.0
    • createDelegate

      protected org.springframework.security.web.util.matcher.RequestMatcher createDelegate(org.springframework.web.context.WebApplicationContext context, org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • ignoreApplicationContext

      protected boolean ignoreApplicationContext(org.springframework.web.context.WebApplicationContext applicationContext)
      Overrides:
      ignoreApplicationContext in class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
    • ignoreApplicationContext

      protected boolean ignoreApplicationContext(org.springframework.web.context.WebApplicationContext applicationContext, ManagementPortType managementPortType)
    • hasWebServerNamespace

      protected final boolean hasWebServerNamespace(org.springframework.context.ApplicationContext applicationContext, org.springframework.boot.actuate.endpoint.web.WebServerNamespace webServerNamespace)
    • initialized

      protected final void initialized(Supplier<org.springframework.web.context.WebApplicationContext> context)
      Overrides:
      initialized in class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
    • matches

      protected final boolean matches(jakarta.servlet.http.HttpServletRequest request, Supplier<org.springframework.web.context.WebApplicationContext> context)
      Specified by:
      matches in class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<org.springframework.web.context.WebApplicationContext>
    • getDelegateMatchers

      protected final List<org.springframework.security.web.util.matcher.RequestMatcher> getDelegateMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, Set<String> paths, org.springframework.http.HttpMethod httpMethod)
    • getLinksMatchers

      protected List<org.springframework.security.web.util.matcher.RequestMatcher> getLinksMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, String basePath)
    • getRequestMatcherProvider

      protected RequestMatcherProvider getRequestMatcherProvider(org.springframework.web.context.WebApplicationContext context)
    • toString

      protected String toString(List<Object> endpoints, String emptyValue)
    • getEndpointId

      protected org.springframework.boot.actuate.endpoint.EndpointId getEndpointId(Object source)