| Modifier and Type | Field and Description |
|---|---|
| private PathMatcher | |
| private PathPatternParser | |
| private UrlPathHelper | |
| private PathMatcher | |
| private Map | |
| private PathPatternParser | |
| private boolean | |
| private Boolean | |
| private Boolean | |
| private Boolean | |
| private UrlPathHelper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PathMatchConfigurer | addPathPrefix(String
the prefix to apply prefix, Predicate<Class<?>> a predicate for matching controller types predicate)Configure a path prefix to apply to matching controller methods. |
| public PathMatcher | |
| protected PathMatcher | |
| protected Map | |
| public PathPatternParser | |
| public PathPatternParser | getPatternParserOrDefault()
Return the configured PathPatternParser or a default, shared instance otherwise. |
| public UrlPathHelper | |
| protected UrlPathHelper | getUrlPathHelperOrDefault()
Return the configured UrlPathHelper or a default, shared instance otherwise. |
| public Boolean | isUseRegisteredSuffixPatternMatch()
Deprecated
as of 5.2.4, see deprecation note on
setUseRegisteredSuffixPatternMatch(Boolean).
Whether to use registered suffixes for pattern matching. |
| public Boolean | isUseSuffixPatternMatch()
Deprecated
as of 5.2.4, see deprecation note on
setUseSuffixPatternMatch(Boolean).
Whether to use registered suffixes for pattern matching. |
| public Boolean | |
| protected boolean | |
| public PathMatchConfigurer | |
| public PathMatchConfigurer | setPatternParser(PathPatternParser
the parser to pre-parse patterns with patternParser)Set the |
| public PathMatchConfigurer | setUrlPathHelper(UrlPathHelper urlPathHelper)
Set the UrlPathHelper to use to resolve the mapping path for the application. |
| public PathMatchConfigurer | setUseRegisteredSuffixPatternMatch(Boolean registeredSuffixPatternMatch)
Deprecated
as of 5.2.4.
Whether suffix pattern matching should work only against path extensions
explicitly registered when you
|
| public PathMatchConfigurer | setUseSuffixPatternMatch(Boolean suffixPatternMatch)
Deprecated
as of 5.2.4.
Whether to use suffix pattern match (".*") when matching patterns to requests. |
| public PathMatchConfigurer | setUseTrailingSlashMatch(Boolean trailingSlashMatch)
Deprecated
since 6.0. as of 6.0, see
PathPatternParser#setMatchOptionalTrailingSeparator(boolean)
Whether to match to URLs irrespective of the presence of a trailing slash. |
| defaultPathMatcher | back to summary |
|---|---|
| private PathMatcher defaultPathMatcher
| |
| defaultPatternParser | back to summary |
|---|---|
| private PathPatternParser defaultPatternParser
| |
| defaultUrlPathHelper | back to summary |
|---|---|
| private UrlPathHelper defaultUrlPathHelper
| |
| pathMatcher | back to summary |
|---|---|
| private PathMatcher pathMatcher
| |
| pathPrefixes | back to summary |
|---|---|
| private Map<String, Predicate<Class<?>>> pathPrefixes
| |
| patternParser | back to summary |
|---|---|
| private PathPatternParser patternParser
| |
| preferPathMatcher | back to summary |
|---|---|
| private boolean preferPathMatcher | |
| registeredSuffixPatternMatch | back to summary |
|---|---|
| private Boolean registeredSuffixPatternMatch
| |
| suffixPatternMatch | back to summary |
|---|---|
| private Boolean suffixPatternMatch
| |
| trailingSlashMatch | back to summary |
|---|---|
| private Boolean trailingSlashMatch
| |
| urlPathHelper | back to summary |
|---|---|
| private UrlPathHelper urlPathHelper
| |
| PathMatchConfigurer | back to summary |
|---|---|
| public PathMatchConfigurer() | |
| addPathPrefix | back to summary |
|---|---|
| public PathMatchConfigurer addPathPrefix(String prefix, Predicate<Class<?>> predicate) Configure a path prefix to apply to matching controller methods. Prefixes are used to enrich the mappings of every Consider using | |
| getPathMatcher | back to summary |
|---|---|
public PathMatcher getPathMatcher()
| |
| getPathMatcherOrDefault | back to summary |
|---|---|
| protected PathMatcher getPathMatcherOrDefault() Return the configured PathMatcher or a default, shared instance otherwise.
| |
| getPathPrefixes | back to summary |
|---|---|
protected Map
| |
| getPatternParser | back to summary |
|---|---|
| public PathPatternParser getPatternParser() Return the
| |
| getPatternParserOrDefault | back to summary |
|---|---|
| public PathPatternParser getPatternParserOrDefault() Return the configured PathPatternParser or a default, shared instance otherwise.
| |
| getUrlPathHelper | back to summary |
|---|---|
public UrlPathHelper getUrlPathHelper()
| |
| getUrlPathHelperOrDefault | back to summary |
|---|---|
| protected UrlPathHelper getUrlPathHelperOrDefault() Return the configured UrlPathHelper or a default, shared instance otherwise.
| |
| isUseRegisteredSuffixPatternMatch | back to summary |
|---|---|
| public Boolean isUseRegisteredSuffixPatternMatch()
Deprecated as of 5.2.4, see deprecation note on
Whether to use registered suffixes for pattern matching.
| |
| isUseSuffixPatternMatch | back to summary |
|---|---|
| public Boolean isUseSuffixPatternMatch()
Deprecated as of 5.2.4, see deprecation note on
Whether to use registered suffixes for pattern matching.
| |
| isUseTrailingSlashMatch | back to summary |
|---|---|
| public Boolean isUseTrailingSlashMatch()
Deprecated
| |
| preferPathMatcher | back to summary |
|---|---|
| protected boolean preferPathMatcher() Whether to prefer
| |
| setPathMatcher | back to summary |
|---|---|
| public PathMatchConfigurer setPathMatcher(PathMatcher pathMatcher) Set the PathMatcher to use for String pattern matching. Note This property is mutually exclusive with
By default this is an instance of | |
| setPatternParser | back to summary |
|---|---|
| public PathMatchConfigurer setPatternParser(PathPatternParser patternParser) Set the Note: This property is mutually exclusive with the
following other,
By default, as of 6.0, a
| |
| setUrlPathHelper | back to summary |
|---|---|
| public PathMatchConfigurer setUrlPathHelper(UrlPathHelper urlPathHelper) Set the UrlPathHelper to use to resolve the mapping path for the application. Note This property is mutually exclusive with
By default this is an instance of | |
| setUseRegisteredSuffixPatternMatch | back to summary |
|---|---|
| public PathMatchConfigurer setUseRegisteredSuffixPatternMatch(Boolean registeredSuffixPatternMatch)
Deprecated as of 5.2.4. See class-level note in
Whether suffix pattern matching should work only against path extensions
explicitly registered when you
Note This property is mutually exclusive with
By default this is set to "false".
| |
| setUseSuffixPatternMatch | back to summary |
|---|---|
| public PathMatchConfigurer setUseSuffixPatternMatch(Boolean suffixPatternMatch)
Deprecated as of 5.2.4. See class-level note in
Whether to use suffix pattern match (".*") when matching patterns to requests. If enabled a method mapped to "/users" also matches to "/users.*". Note This property is mutually exclusive with
By default this is set to
| |
| setUseTrailingSlashMatch | back to summary |
|---|---|
| public PathMatchConfigurer setUseTrailingSlashMatch(Boolean trailingSlashMatch)
Whether to match to URLs irrespective of the presence of a trailing slash. If enabled a method mapped to "/users" also matches to "/users/". The default was changed in 6.0 from
| |