Class DefaultSourceDirectoryUrlFilter

java.lang.Object
org.springframework.boot.devtools.restart.server.DefaultSourceDirectoryUrlFilter
All Implemented Interfaces:
SourceDirectoryUrlFilter

public class DefaultSourceDirectoryUrlFilter extends Object implements SourceDirectoryUrlFilter
Default implementation of SourceDirectoryUrlFilter that attempts to match URLs using common naming conventions.
Since:
2.3.0
Author:
Phillip Webb
  • Constructor Details

    • DefaultSourceDirectoryUrlFilter

      public DefaultSourceDirectoryUrlFilter()
  • Method Details

    • isMatch

      public boolean isMatch(String sourceDirectory, URL url)
      Description copied from interface: SourceDirectoryUrlFilter
      Determine if the specified URL matches a source directory.
      Specified by:
      isMatch in interface SourceDirectoryUrlFilter
      Parameters:
      sourceDirectory - the source directory
      url - the URL to check
      Returns:
      true if the URL matches