public static final class PathRequest.H2ConsoleRequestMatcher extends ApplicationContextRequestMatcher<H2ConsoleProperties>
RequestMatcher.MatchResult
Modifier and Type | Method and Description |
---|---|
protected boolean |
ignoreApplicationContext(WebApplicationContext applicationContext)
Returns if the
WebApplicationContext should be ignored and not used for
matching. |
protected void |
initialized(Supplier<H2ConsoleProperties> h2ConsoleProperties)
Method that can be implemented by subclasses that wish to initialize items the
first time that the matcher is called.
|
protected boolean |
matches(HttpServletRequest request,
Supplier<H2ConsoleProperties> context)
Decides whether the rule implemented by the strategy matches the supplied request.
|
matches
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matcher
protected boolean ignoreApplicationContext(WebApplicationContext applicationContext)
ApplicationContextRequestMatcher
WebApplicationContext
should be ignored and not used for
matching. If this method returns true
then the context will not be used and
the matches
method will return false
.ignoreApplicationContext
in class ApplicationContextRequestMatcher<H2ConsoleProperties>
applicationContext
- the candidate web application contextprotected void initialized(Supplier<H2ConsoleProperties> h2ConsoleProperties)
ApplicationContextRequestMatcher
ApplicationContextRequestMatcher.ignoreApplicationContext(WebApplicationContext)
returns
false
. Note that the supplied context will be based on the
first request sent to the matcher.initialized
in class ApplicationContextRequestMatcher<H2ConsoleProperties>
h2ConsoleProperties
- a supplier for the initialized context (may throw an exception)ApplicationContextRequestMatcher.ignoreApplicationContext(WebApplicationContext)
protected boolean matches(HttpServletRequest request, Supplier<H2ConsoleProperties> context)
ApplicationContextRequestMatcher
matches
in class ApplicationContextRequestMatcher<H2ConsoleProperties>
request
- the source requestcontext
- a supplier for the initialized context (may throw an exception)