Class PathResolverFactory


  • public abstract class PathResolverFactory
    extends Object
    The path resolver factory creates a path resolver for a pattern. The servlet spec supports different patterns - path mapping, a pattern starting with / and ending with /* - extension mapping, a pattern starting with *. - default mapping, the pattern / - root mapping, the pattern is the empty string - exact match Exact match is tried first, followed by longest match and finally extension match.
    • Constructor Detail

      • PathResolverFactory

        public PathResolverFactory()
    • Method Detail

      • createPatternMatcher

        @NotNull
        public static @NotNull PathResolver createPatternMatcher​(@Nullable
                                                                 @Nullable ServletHandler handler,
                                                                 @NotNull
                                                                 @NotNull String pattern)
      • createRegexMatcher

        @NotNull
        public static @NotNull PathResolver createRegexMatcher​(@NotNull
                                                               @NotNull String regex)