public static class RequestMappingInfo.BuilderConfiguration
extends java.lang.Object
Constructor and Description |
---|
BuilderConfiguration() |
Modifier and Type | Method and Description |
---|---|
ContentNegotiationManager |
getContentNegotiationManager()
Return the ContentNegotiationManager to use for the ProducesRequestCondition,
if any.
|
java.util.List<java.lang.String> |
getFileExtensions()
Return the file extensions to use for suffix pattern matching.
|
PathMatcher |
getPathMatcher()
Return a custom PathMatcher to use for the PatternsRequestCondition, if any.
|
UrlPathHelper |
getUrlPathHelper()
Return a custom UrlPathHelper to use for the PatternsRequestCondition, if any.
|
void |
setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Set the ContentNegotiationManager to use for the ProducesRequestCondition.
|
void |
setPathHelper(UrlPathHelper pathHelper)
Deprecated.
as of Spring 4.2.8, in favor of
setUrlPathHelper(org.springframework.web.util.UrlPathHelper) |
void |
setPathMatcher(PathMatcher pathMatcher)
Set a custom PathMatcher to use for the PatternsRequestCondition.
|
void |
setRegisteredSuffixPatternMatch(boolean registeredSuffixPatternMatch)
Set whether suffix pattern matching should be restricted to registered
file extensions only.
|
void |
setSuffixPatternMatch(boolean suffixPatternMatch)
Set whether to apply suffix pattern matching in PatternsRequestCondition.
|
void |
setTrailingSlashMatch(boolean trailingSlashMatch)
Set whether to apply trailing slash matching in PatternsRequestCondition.
|
void |
setUrlPathHelper(UrlPathHelper urlPathHelper)
Set a custom UrlPathHelper to use for the PatternsRequestCondition.
|
boolean |
useRegisteredSuffixPatternMatch()
Return whether suffix pattern matching should be restricted to registered
file extensions only.
|
boolean |
useSuffixPatternMatch()
Return whether to apply suffix pattern matching in PatternsRequestCondition.
|
boolean |
useTrailingSlashMatch()
Return whether to apply trailing slash matching in PatternsRequestCondition.
|
@Deprecated public void setPathHelper(UrlPathHelper pathHelper)
setUrlPathHelper(org.springframework.web.util.UrlPathHelper)
public void setUrlPathHelper(UrlPathHelper urlPathHelper)
By default this is not set.
public UrlPathHelper getUrlPathHelper()
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)
suffixPatternMatch=true
and requires that a
setContentNegotiationManager(org.springframework.web.accept.ContentNegotiationManager)
is also configured in order to
obtain the registered file extensions.public boolean useRegisteredSuffixPatternMatch()
public java.util.List<java.lang.String> getFileExtensions()
registeredSuffixPatternMatch=true
, the extensions are obtained
from the configured contentNegotiationManager
.public void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
By default this is not set.
public ContentNegotiationManager getContentNegotiationManager()