Class PathPattern

java.lang.Object
org.springframework.boot.security.autoconfigure.web.PathPattern

public final class PathPattern extends Object
Utility class used to build a normalized pattern based on a user supplied path.
Since:
4.0.9.1
Author:
Phillip Webb, Andy Wilkinson
  • Method Details

    • withTrailingSlash

      public String withTrailingSlash()
      Return a string containing the path pattern with a trailing slash.
      Returns:
      the pattern string
    • withoutTrailingSlash

      public String withoutTrailingSlash()
      Return a string containing the path pattern without a trailing slash.
      Returns:
      the pattern string
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • of

      public static PathPattern of(String path)