Class ParameterVersionResolverConfiguration
java.lang.Object
io.micronaut.web.router.version.resolution.ParameterVersionResolverConfiguration
- All Implemented Interfaces:
Toggleable
@ConfigurationProperties("micronaut.router.versioning.parameter")
@Requires(property="micronaut.router.versioning.parameter.enabled",
value="true")
public class ParameterVersionResolverConfiguration
extends Object
implements Toggleable
Configuration for version resolution via request parameters.
- Since:
- 1.1.0
- Author:
- James Kleeh, graemerocher
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
ParameterVersionResolverConfiguration
public ParameterVersionResolverConfiguration()
-
-
Method Details
-
getNames
- Returns:
- The parameter names to search for the version.
-
setNames
Sets which parameter should be searched for a version.- Parameters:
names
- The parameter names
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceToggleable
- Returns:
true
If parameter should be searched.
-
setEnabled
public void setEnabled(boolean enabled) Sets whether parameter should be searched for a version.- Parameters:
enabled
- True if parameter should be searched.
-