mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +00:00
Support for functional routing by API version
See gh-35113
This commit is contained in:
+10
@@ -91,6 +91,16 @@ public class DefaultApiVersionStrategy implements ApiVersionStrategy {
|
||||
return this.defaultVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether the strategy is configured to detect supported versions.
|
||||
* If this is set to {@code false} then {@link #addMappedVersion} is ignored
|
||||
* and the list of supported versions can be built explicitly through calls
|
||||
* to {@link #addSupportedVersion}.
|
||||
*/
|
||||
public boolean detectSupportedVersions() {
|
||||
return this.detectSupportedVersions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to the list of supported versions to check against in
|
||||
* {@link ApiVersionStrategy#validateVersion} before raising
|
||||
|
||||
Reference in New Issue
Block a user