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