com.vaadin.flow.spring.security.
Class WebIconsRequestMatcher
All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
Matches request for custom PWA icons and Favicon paths.
PWA icon paths are computed by analyzing the PWA
annotation on the
AppShellConfigurator
implementor class. The favicon is detected by
invoking the AppShellConfigurator.configurePage(AppShellSettings)
method and tracking potential calls to
AppShellSettings.addFavIcon(String, String, String)
and
AppShellSettings.addFavIcon(String, String, String)
methods.
Default paths (PwaConfiguration.DEFAULT_ICON
and
/favicon.ico) are not considered.
-
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
ConstructorsConstructorDescriptionWebIconsRequestMatcher
(VaadinService service, String urlMapping) Creates a new WebIconsRequestMatcher.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(jakarta.servlet.http.HttpServletRequest request) 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
-
WebIconsRequestMatcher
Creates a new WebIconsRequestMatcher.
Parameters:
service
- VaadinService instance, not null.urlMapping
- Vaadin servlet url mapping, can be null.
-
-
Method Details
-
matches
public boolean matches(jakarta.servlet.http.HttpServletRequest request) Specified by:
matches
in interfaceorg.springframework.security.web.util.matcher.RequestMatcher
-