@ConfigurationProperties(value="micronaut.multitenancy.propagation") public class TenantPropagationConfigurationProperties extends Object implements TenantPropagationConfiguration
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static String |
DEFAULT_PATH
The default path.
|
static String |
PREFIX |
Constructor and Description |
---|
TenantPropagationConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
String |
getPath() |
Pattern |
getServiceIdPattern() |
String |
getServiceIdRegex() |
Pattern |
getUriPattern() |
String |
getUriRegex() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Whether
TenantPropagationHttpClientFilter should be enabled. |
void |
setPath(String path)
Configures
TenantPropagationHttpClientFilter path. |
void |
setServiceIdRegex(String serviceIdRegex)
Regular expression to match service ID.
|
void |
setUriRegex(String uriRegex)
Regular expression to match URI.
|
public static final String PREFIX
public static final boolean DEFAULT_ENABLED
public static final String DEFAULT_PATH
public TenantPropagationConfigurationProperties()
public String getServiceIdRegex()
public void setServiceIdRegex(String serviceIdRegex)
serviceIdRegex
- serviceId regular expressionpublic String getUriRegex()
public void setUriRegex(String uriRegex)
uriRegex
- uri regular expressionpublic boolean isEnabled()
isEnabled
in interface Toggleable
public void setEnabled(boolean enabled)
TenantPropagationHttpClientFilter
should be enabled. Default value (false).enabled
- enabled flagpublic void setPath(String path)
TenantPropagationHttpClientFilter
path. Default value "/**"path
- Path to be matched by Token Propagation Filter.public String getPath()
getPath
in interface TenantPropagationConfiguration
public Pattern getServiceIdPattern()
getServiceIdPattern
in interface OutgointRequestProcessorMatcher
public Pattern getUriPattern()
getUriPattern
in interface OutgointRequestProcessorMatcher