类 EndpointRequest.EndpointRequestMatcher
java.lang.Object
org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<WebApplicationContext>
org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.EndpointRequestMatcher
- 所有已实现的接口:
RequestMatcher
- 封闭类:
EndpointRequest
public static final class EndpointRequest.EndpointRequestMatcher
extends ApplicationContextRequestMatcher<WebApplicationContext>
The request matcher used to match against
actuator endpoints.-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher.MatchResult -
方法概要
修饰符和类型方法说明protected RequestMatchercreateDelegate(WebApplicationContext context, org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) protected final List<RequestMatcher> getDelegateMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, Set<String> paths, HttpMethod httpMethod) protected EndpointIdgetEndpointId(Object source) protected List<RequestMatcher> getLinksMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, String basePath) protected RequestMatcherProviderprotected final booleanhasWebServerNamespace(ApplicationContext applicationContext, WebServerNamespace webServerNamespace) protected booleanignoreApplicationContext(WebApplicationContext applicationContext) Returns if theWebApplicationContextshould be ignored and not used for matching.protected booleanignoreApplicationContext(WebApplicationContext applicationContext, ManagementPortType managementPortType) protected final voidinitialized(Supplier<WebApplicationContext> context) Method that can be implemented by subclasses that wish to initialize items the first time that the matcher is called.protected final booleanmatches(HttpServletRequest request, Supplier<WebApplicationContext> context) Decides whether the rule implemented by the strategy matches the supplied request.toString()protected StringwithHttpMethod(HttpMethod httpMethod) Restricts the matcher to only consider requests with a particular HTTP method.从类继承的方法 org.springframework.boot.security.servlet.ApplicationContextRequestMatcher
matches从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
方法详细资料
-
excluding
-
excluding
-
excludingLinks
-
withHttpMethod
Restricts the matcher to only consider requests with a particular HTTP method.- 参数:
httpMethod- the HTTP method to include- 返回:
- a copy of the matcher further restricted to only match requests with the specified HTTP method
- 从以下版本开始:
- 3.5.0
-
createDelegate
protected RequestMatcher createDelegate(WebApplicationContext context, org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) -
toString
-
ignoreApplicationContext
从类复制的说明:ApplicationContextRequestMatcherReturns if theWebApplicationContextshould be ignored and not used for matching. If this method returnstruethen the context will not be used and thematchesmethod will returnfalse.- 覆盖:
ignoreApplicationContext在类中ApplicationContextRequestMatcher<WebApplicationContext>- 参数:
applicationContext- the candidate web application context- 返回:
- if the application context should be ignored
-
ignoreApplicationContext
protected boolean ignoreApplicationContext(WebApplicationContext applicationContext, ManagementPortType managementPortType) -
hasWebServerNamespace
protected final boolean hasWebServerNamespace(ApplicationContext applicationContext, WebServerNamespace webServerNamespace) -
initialized
从类复制的说明:ApplicationContextRequestMatcherMethod that can be implemented by subclasses that wish to initialize items the first time that the matcher is called. This method will be called only once and only ifApplicationContextRequestMatcher.ignoreApplicationContext(WebApplicationContext)returnsfalse. Note that the supplied context will be based on the first request sent to the matcher.- 覆盖:
initialized在类中ApplicationContextRequestMatcher<WebApplicationContext>- 参数:
context- a supplier for the initialized context (may throw an exception)- 另请参阅:
-
matches
protected final boolean matches(HttpServletRequest request, Supplier<WebApplicationContext> context) 从类复制的说明:ApplicationContextRequestMatcherDecides whether the rule implemented by the strategy matches the supplied request.- 指定者:
matches在类中ApplicationContextRequestMatcher<WebApplicationContext>- 参数:
request- the source requestcontext- a supplier for the initialized context (may throw an exception)- 返回:
- if the request matches
-
getDelegateMatchers
protected final List<RequestMatcher> getDelegateMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, Set<String> paths, HttpMethod httpMethod) -
getLinksMatchers
protected List<RequestMatcher> getLinksMatchers(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, String basePath) -
getRequestMatcherProvider
-
toString
-
getEndpointId
-