@ConfigurationProperties(value="micronaut.router.versioning") @Requires(property="micronaut.router.versioning.enabled", value="true") public class RoutesVersioningConfiguration extends Object implements Toggleable
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX
The configuration property.
|
Constructor and Description |
---|
RoutesVersioningConfiguration() |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
getDefaultVersion() |
boolean |
isEnabled() |
void |
setDefaultVersion(String defaultVersion)
Sets the version to use if the version cannot be resolved.
|
void |
setEnabled(boolean enabled) |
public static final String PREFIX
public void setEnabled(boolean enabled)
enabled
- Enables the version based route matches filtering.public boolean isEnabled()
isEnabled
in interface Toggleable
true
if version based matches filtering is enabled.public Optional<String> getDefaultVersion()