@ConfigurationProperties(value="micronaut.router.versioning.parameter") @Requires(property="micronaut.router.versioning.parameter.enabled", value="true") public class ParameterVersionResolverConfiguration extends java.lang.Object implements Toggleable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PARAMETER_NAME |
static java.lang.String |
PREFIX |
Constructor and Description |
---|
ParameterVersionResolverConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getNames() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Sets whether parameter should be searched for a version.
|
void |
setNames(java.util.List<java.lang.String> names)
Sets which parameter should be searched for a version.
|
public static final java.lang.String PREFIX
public static final java.lang.String DEFAULT_PARAMETER_NAME
public ParameterVersionResolverConfiguration()
public java.util.List<java.lang.String> getNames()
public void setNames(java.util.List<java.lang.String> names)
names
- The parameter namespublic boolean isEnabled()
isEnabled
in interface Toggleable
true
If parameter should be searched.public void setEnabled(boolean enabled)
enabled
- True if parameter should be searched.