Package com.vaadin.flow.spring.security
Class PwaResourcesRequestMatcher
java.lang.Object
com.vaadin.flow.spring.security.PwaResourcesRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
public class PwaResourcesRequestMatcher
extends Object
implements org.springframework.security.web.util.matcher.RequestMatcher
Matches requests for the PWA manifest, the offline page and the additional
offline resources configured by the application.
The paths are computed by analyzing the PWA annotation on the
AppShellConfigurator implementor class. Flow puts them into the
service worker precache manifest, so the service worker requests them while
installing, and the installation fails if any of them is not served.
The default manifest (PwaConfiguration.DEFAULT_PATH) and offline
(PwaConfiguration.DEFAULT_OFFLINE_PATH) paths are not considered,
since they are already part of HandlerHelper.getPublicResources().
- Since:
- 25.2.9
-
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
ConstructorsConstructorDescriptionPwaResourcesRequestMatcher(VaadinService service, String urlMapping) Creates a new PwaResourcesRequestMatcher. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Constructor Details
-
PwaResourcesRequestMatcher
Creates a new PwaResourcesRequestMatcher.- 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:
matchesin interfaceorg.springframework.security.web.util.matcher.RequestMatcher
-