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