Add getter for RequestMappingInfo.BuilderConfiguration
This improves support for programmatic registration of mappings to use the same config as that of the RequestMappingHandlerMapping. See gh-27723
This commit is contained in:
committed by
Rossen Stoyanchev
parent
0d7c562693
commit
ce0aed216b
@@ -246,6 +246,17 @@ public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi
|
||||
return this.config.getFileExtensions();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the configuration to build {@link RequestMappingInfo}
|
||||
* instances. This is useful for programmatic registration of
|
||||
* additional mappings following the same configuration as {@link
|
||||
* #createRequestMappingInfo(RequestMapping, RequestCondition)}.
|
||||
*
|
||||
* @return builder configuration to be supplied into {@link RequestMappingInfo.Builder#options}.
|
||||
*/
|
||||
public RequestMappingInfo.BuilderConfiguration getRequestMappingInfoBuilderConfiguration() {
|
||||
return this.config;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
|
||||
Reference in New Issue
Block a user