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