public class PathMatchConfigurer
extends java.lang.Object
HandlerMapping
's with path matching options.Modifier and Type | Field and Description |
---|---|
private HttpRequestPathHelper |
pathHelper |
private PathMatcher |
pathMatcher |
private java.lang.Boolean |
registeredSuffixPatternMatch |
private java.lang.Boolean |
suffixPatternMatch |
private java.lang.Boolean |
trailingSlashMatch |
Constructor and Description |
---|
PathMatchConfigurer() |
Modifier and Type | Method and Description |
---|---|
protected HttpRequestPathHelper |
getPathHelper() |
protected PathMatcher |
getPathMatcher() |
protected java.lang.Boolean |
isUseRegisteredSuffixPatternMatch() |
protected java.lang.Boolean |
isUseSuffixPatternMatch() |
protected java.lang.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(java.lang.Boolean registeredSuffixPatternMatch)
Whether suffix pattern matching should work only against path extensions
that are explicitly registered.
|
PathMatchConfigurer |
setUseSuffixPatternMatch(java.lang.Boolean suffixPatternMatch)
Whether to use suffix pattern match (".*") when matching patterns to
requests.
|
PathMatchConfigurer |
setUseTrailingSlashMatch(java.lang.Boolean trailingSlashMatch)
Whether to match to URLs irrespective of the presence of a trailing slash.
|
private java.lang.Boolean suffixPatternMatch
private java.lang.Boolean trailingSlashMatch
private java.lang.Boolean registeredSuffixPatternMatch
private HttpRequestPathHelper pathHelper
private PathMatcher pathMatcher
public PathMatchConfigurer setUseSuffixPatternMatch(java.lang.Boolean suffixPatternMatch)
By default this is set to true
.
registeredSuffixPatternMatch
public PathMatchConfigurer setUseTrailingSlashMatch(java.lang.Boolean trailingSlashMatch)
The default value is true
.
public PathMatchConfigurer setUseRegisteredSuffixPatternMatch(java.lang.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 ParsingPathMatcher
.
protected java.lang.Boolean isUseSuffixPatternMatch()
protected java.lang.Boolean isUseTrailingSlashMatch()
protected java.lang.Boolean isUseRegisteredSuffixPatternMatch()
protected HttpRequestPathHelper getPathHelper()
protected PathMatcher getPathMatcher()