@ConfigurationProperties(value="micronaut.multitenancy.tenantresolver.httpheader") public class HttpHeaderTenantResolverConfigurationProperties extends Object implements HttpHeaderTenantResolverConfiguration
ConfigurationProperties
implementation of HttpHeaderTenantResolverConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLE
The default enable value.
|
static String |
PREFIX |
DEFAULT_HEADER_NAME
Constructor and Description |
---|
HttpHeaderTenantResolverConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getHeaderName()
Http Header name which should be used to resolve the tenant id from.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Enables
HttpHeaderTenantResolver . |
void |
setHeaderName(String headerName)
Http Header name which should be used to resolve the tenant id from.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLE
public HttpHeaderTenantResolverConfigurationProperties()
public boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
HttpHeaderTenantResolver
. Default value (false).enabled
- True or Falsepublic void setHeaderName(String headerName)
headerName
- Http Header name.public String getHeaderName()
HttpHeaderTenantResolverConfiguration
getHeaderName
in interface HttpHeaderTenantResolverConfiguration