Class PathRequest.H2ConsoleRequestMatcher
java.lang.Object
org.springframework.boot.security.web.servlet.ApplicationContextRequestMatcher<ApplicationContext>
org.springframework.boot.security.autoconfigure.web.servlet.PathRequest.H2ConsoleRequestMatcher
- All Implemented Interfaces:
- RequestMatcher
- Enclosing class:
- PathRequest
public static final class PathRequest.H2ConsoleRequestMatcher
extends ApplicationContextRequestMatcher<ApplicationContext>
The request matcher used to match against h2 console path.
- Since:
- 4.0.0
- Author:
- Madhura Bhave, Phillip Webb
- 
Nested Class SummaryNested classes/interfaces inherited from interface RequestMatcherRequestMatcher.MatchResult
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanignoreApplicationContext(WebApplicationContext applicationContext) Returns if theWebApplicationContextshould be ignored and not used for matching.protected voidinitialized(Supplier<ApplicationContext> context) Method that can be implemented by subclasses that wish to initialize items the first time that the matcher is called.protected booleanmatches(HttpServletRequest request, Supplier<ApplicationContext> context) Decides whether the rule implemented by the strategy matches the supplied request.Methods inherited from class ApplicationContextRequestMatchermatchesMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestMatchermatcher
- 
Method Details- 
ignoreApplicationContextDescription copied from class:ApplicationContextRequestMatcherReturns if theWebApplicationContextshould be ignored and not used for matching. If this method returnstruethen the context will not be used and thematchesmethod will returnfalse.- Overrides:
- ignoreApplicationContextin class- ApplicationContextRequestMatcher<ApplicationContext>
- Parameters:
- applicationContext- the candidate web application context
- Returns:
- if the application context should be ignored
 
- 
initializedDescription copied from class: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.- Overrides:
- initializedin class- ApplicationContextRequestMatcher<ApplicationContext>
- Parameters:
- context- a supplier for the initialized context (may throw an exception)
- See Also:
 
- 
matchesDescription copied from class:ApplicationContextRequestMatcherDecides whether the rule implemented by the strategy matches the supplied request.- Specified by:
- matchesin class- ApplicationContextRequestMatcher<ApplicationContext>
- Parameters:
- request- the source request
- context- a supplier for the initialized context (may throw an exception)
- Returns:
- if the request matches
 
 
-