public class PathMatchConfigurer extends Object
HandlerMapping's with path matching options.| Constructor and Description |
|---|
PathMatchConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
protected HttpRequestPathHelper |
getPathHelper() |
protected PathMatcher |
getPathMatcher() |
protected Boolean |
isUseRegisteredSuffixPatternMatch() |
protected Boolean |
isUseSuffixPatternMatch() |
protected Boolean |
isUseTrailingSlashMatch() |
PathMatchConfigurer |
setPathHelper(HttpRequestPathHelper pathHelper)
Set a
HttpRequestPathHelper for the resolution of lookup paths. |
PathMatchConfigurer |
setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher for matching URL paths against registered URL patterns.
|
PathMatchConfigurer |
setUseRegisteredSuffixPatternMatch(Boolean registeredSuffixPatternMatch)
Whether suffix pattern matching should work only against path extensions
that are explicitly registered.
|
PathMatchConfigurer |
setUseSuffixPatternMatch(Boolean suffixPatternMatch)
Whether to use suffix pattern match (".*") when matching patterns to
requests.
|
PathMatchConfigurer |
setUseTrailingSlashMatch(Boolean trailingSlashMatch)
Whether to match to URLs irrespective of the presence of a trailing slash.
|
public PathMatchConfigurer setUseSuffixPatternMatch(Boolean suffixPatternMatch)
By default this is set to true.
registeredSuffixPatternMatchpublic PathMatchConfigurer setUseTrailingSlashMatch(Boolean trailingSlashMatch)
The default value is true.
public PathMatchConfigurer setUseRegisteredSuffixPatternMatch(Boolean registeredSuffixPatternMatch)
By default this is set to "true".
public PathMatchConfigurer setPathHelper(HttpRequestPathHelper pathHelper)
HttpRequestPathHelper for the resolution of lookup paths.
Default is HttpRequestPathHelper.
public PathMatchConfigurer setPathMatcher(PathMatcher pathMatcher)
Default is AntPathMatcher.
protected Boolean isUseSuffixPatternMatch()
protected Boolean isUseTrailingSlashMatch()
protected Boolean isUseRegisteredSuffixPatternMatch()
protected HttpRequestPathHelper getPathHelper()
protected PathMatcher getPathMatcher()