public static class RequestMappingInfo.BuilderConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RequestedContentTypeResolver |
contentTypeResolver |
private HttpRequestPathHelper |
pathHelper |
private PathMatcher |
pathMatcher |
private boolean |
registeredSuffixPatternMatch |
private boolean |
suffixPatternMatch |
private boolean |
trailingSlashMatch |
Constructor and Description |
---|
BuilderConfiguration() |
Modifier and Type | Method and Description |
---|---|
RequestedContentTypeResolver |
getContentTypeResolver() |
java.util.Set<java.lang.String> |
getFileExtensions()
Return the file extensions to use for suffix pattern matching.
|
HttpRequestPathHelper |
getPathHelper() |
PathMatcher |
getPathMatcher() |
void |
setContentTypeResolver(RequestedContentTypeResolver resolver)
Set the ContentNegotiationManager to use for the ProducesRequestCondition.
|
void |
setPathHelper(HttpRequestPathHelper pathHelper)
Set a custom UrlPathHelper to use for the PatternsRequestCondition.
|
void |
setPathMatcher(PathMatcher pathMatcher)
Set a custom PathMatcher to use for the PatternsRequestCondition.
|
void |
setRegisteredSuffixPatternMatch(boolean registeredSuffixPatternMatch)
Whether suffix pattern matching should be restricted to registered
file extensions only.
|
void |
setSuffixPatternMatch(boolean suffixPatternMatch)
Whether to apply suffix pattern matching in PatternsRequestCondition.
|
void |
setTrailingSlashMatch(boolean trailingSlashMatch)
Whether to apply trailing slash matching in PatternsRequestCondition.
|
boolean |
useRegisteredSuffixPatternMatch() |
boolean |
useSuffixPatternMatch() |
boolean |
useTrailingSlashMatch() |
private HttpRequestPathHelper pathHelper
private PathMatcher pathMatcher
private boolean trailingSlashMatch
private boolean suffixPatternMatch
private boolean registeredSuffixPatternMatch
private RequestedContentTypeResolver contentTypeResolver
public void setPathHelper(HttpRequestPathHelper pathHelper)
By default this is not set.
public HttpRequestPathHelper getPathHelper()
public void setPathMatcher(PathMatcher pathMatcher)
By default this is not set.
public PathMatcher getPathMatcher()
public void setTrailingSlashMatch(boolean trailingSlashMatch)
By default this is set to 'true'.
public boolean useTrailingSlashMatch()
public void setSuffixPatternMatch(boolean suffixPatternMatch)
By default this is set to 'true'.
setRegisteredSuffixPatternMatch(boolean)
public boolean useSuffixPatternMatch()
public void setRegisteredSuffixPatternMatch(boolean registeredSuffixPatternMatch)
setContentTypeResolver(org.springframework.web.reactive.accept.RequestedContentTypeResolver)
is also configured in order to
obtain the registered file extensions.public boolean useRegisteredSuffixPatternMatch()
public java.util.Set<java.lang.String> getFileExtensions()
registeredSuffixPatternMatch=true
, the extensions are obtained
from the configured contentTypeResolver
.public void setContentTypeResolver(RequestedContentTypeResolver resolver)
By default this is not set.
public RequestedContentTypeResolver getContentTypeResolver()