public static final class PathRequest.H2ConsoleRequestMatcher extends ApplicationContextRequestMatcher<H2ConsoleProperties>
Modifier and Type | Method and Description |
---|---|
protected boolean |
ignoreApplicationContext(org.springframework.web.context.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(javax.servlet.http.HttpServletRequest request,
Supplier<H2ConsoleProperties> context)
Decides whether the rule implemented by the strategy matches the supplied request.
|
matches
protected boolean ignoreApplicationContext(org.springframework.web.context.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(javax.servlet.http.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)Copyright © 2020 Pivotal Software, Inc.. All rights reserved.