Class WebIconsRequestMatcher

java.lang.Object
com.vaadin.flow.spring.security.WebIconsRequestMatcher
All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher

public class WebIconsRequestMatcher extends Object implements 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

    Constructors
    Constructor
    Description
    Creates a new WebIconsRequestMatcher.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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

      public WebIconsRequestMatcher(VaadinService service, String urlMapping)
      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 interface org.springframework.security.web.util.matcher.RequestMatcher