Class EndpointRequest.LinksRequestMatcher
java.lang.Object
org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<WebApplicationContext>
org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.LinksRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
- Enclosing class:
- EndpointRequest
public static final class EndpointRequest.LinksRequestMatcher
extends ApplicationContextRequestMatcher<WebApplicationContext>
The request matcher used to match against the links endpoint.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
org.springframework.security.web.util.matcher.RequestMatcher.MatchResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.web.util.matcher.RequestMatcher
createDelegate
(WebApplicationContext context, org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) protected List<org.springframework.security.web.util.matcher.RequestMatcher>
getLinksMatchers
(org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory, RequestMatcherProvider matcherProvider, String basePath) protected RequestMatcherProvider
protected boolean
ignoreApplicationContext
(WebApplicationContext applicationContext) Returns if theWebApplicationContext
should be ignored and not used for matching.protected final void
initialized
(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 boolean
matches
(HttpServletRequest request, Supplier<WebApplicationContext> context) Decides whether the rule implemented by the strategy matches the supplied request.Methods inherited from class org.springframework.boot.security.servlet.ApplicationContextRequestMatcher
matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Constructor Details
-
LinksRequestMatcher
public LinksRequestMatcher()
-
-
Method Details
-
createDelegate
protected org.springframework.security.web.util.matcher.RequestMatcher createDelegate(WebApplicationContext context, org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest.RequestMatcherFactory requestMatcherFactory) -
ignoreApplicationContext
Description copied from class:ApplicationContextRequestMatcher
Returns if theWebApplicationContext
should be ignored and not used for matching. If this method returnstrue
then the context will not be used and thematches
method will returnfalse
.- Overrides:
ignoreApplicationContext
in classApplicationContextRequestMatcher<WebApplicationContext>
- Parameters:
applicationContext
- the candidate web application context- Returns:
- if the application context should be ignored
-
initialized
Description copied from class:ApplicationContextRequestMatcher
Method 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.- Overrides:
initialized
in classApplicationContextRequestMatcher<WebApplicationContext>
- Parameters:
context
- a supplier for the initialized context (may throw an exception)- See Also:
-
matches
protected final boolean matches(HttpServletRequest request, Supplier<WebApplicationContext> context) Description copied from class:ApplicationContextRequestMatcher
Decides whether the rule implemented by the strategy matches the supplied request.- Specified by:
matches
in classApplicationContextRequestMatcher<WebApplicationContext>
- Parameters:
request
- the source requestcontext
- a supplier for the initialized context (may throw an exception)- Returns:
- if the request matches
-
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
-