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

  • Constructor Details

    • ParameterVersionResolverConfiguration

      public ParameterVersionResolverConfiguration()
  • Method Details

    • getNames

      public List<String> getNames()
      Returns:
      The parameter names to search for the version.
    • setNames

      public void setNames(List<String> names)
      Sets which parameter should be searched for a version.
      Parameters:
      names - The parameter names
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Toggleable
      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.