Class PathMatchConfigurer

java.lang.Object
org.springframework.web.reactive.config.PathMatchConfigurer

public class PathMatchConfigurer extends Object
Assist with configuring HandlerMapping's with path matching options.
since:
5.0
Author:
Rossen stoyanchev, Brian Clozel
  • Constructor Details

    • PathMatchConfigurer

      public PathMatchConfigurer()
  • Method Details

    • setUseCasesensitiveMatch

      public PathMatchConfigurer setUseCasesensitiveMatch(Boolean casesensitiveMatch)
      Whether to match to URLs irrespective of their case. If enabled a method mapped to "/users" won't match to "/Users/".

      The default value is false.

    • addPathPrefix

      public&nbsp;PathMatchConfigurer&nbsp;addPathPrefix(string&nbsp;prefix, Predicate<Class<?>>&nbsp;predicate)
      Configure a path prefix to apply to matching controller methods.

      Prefixes are used to enrich the mappings of every @RequestMapping method whose controller type is matched by the corresponding Predicate. The prefix for the first matching predicate is used.

      Consider using HandlerTypePredicate to group controllers.

      Parameters:
      prefix - the path prefix to apply
      predicate - a predicate for matching controller types
      since:
      5.1
    • isUseCasesensitiveMatch

      protected&nbsp;@Nullable Boolean&nbsp;isUseCasesensitiveMatch()
    • getPathPrefixes

      protected&nbsp;@Nullable Map<string, Predicate<Class<?>>>&nbsp;getPathPrefixes()