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