HandlerMapping's with path matching options.
| Modifier and Type | Field and Description |
|---|---|
| private Boolean | |
| private Map | |
| private Boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PathMatchConfigurer | addPathPrefix(String
the path prefix to apply prefix, Predicate<Class<?>> a predicate for matching controller types predicate)Configure a path prefix to apply to matching controller methods. |
| protected Map | |
| protected Boolean | |
| protected Boolean | |
| public PathMatchConfigurer | setUseCaseSensitiveMatch(Boolean caseSensitiveMatch)
Whether to match to URLs irrespective of their case. |
| 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. |
| caseSensitiveMatch | back to summary |
|---|---|
| private Boolean caseSensitiveMatch
| |
| pathPrefixes | back to summary |
|---|---|
| private Map<String, Predicate<Class<?>>> pathPrefixes
| |
| trailingSlashMatch | back to summary |
|---|---|
| private Boolean trailingSlashMatch
| |
| 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 | |
| getPathPrefixes | back to summary |
|---|---|
protected Map
| |
| isUseCaseSensitiveMatch | back to summary |
|---|---|
protected Boolean isUseCaseSensitiveMatch()
| |
| isUseTrailingSlashMatch | back to summary |
|---|---|
| protected Boolean isUseTrailingSlashMatch()
Deprecated
| |
| setUseCaseSensitiveMatch | back to summary |
|---|---|
| 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 | |
| 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
| |