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