Class TenantPropagationConfigurationProperties
java.lang.Object
io.micronaut.multitenancy.propagation.TenantPropagationConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,io.micronaut.http.util.OutgoingRequestProcessorMatcher
,TenantPropagationConfiguration
@ConfigurationProperties("micronaut.multitenancy.propagation")
public class TenantPropagationConfigurationProperties
extends Object
implements TenantPropagationConfiguration
Tenant propagation Configuration Properties.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
boolean
void
setEnabled
(boolean enabled) WhetherTenantPropagationHttpClientFilter
should be enabled.void
ConfiguresTenantPropagationHttpClientFilter
path.void
setServiceIdRegex
(String serviceIdRegex) Regular expression to match service ID.void
setUriRegex
(String uriRegex) Regular expression to match URI.
-
Field Details
-
PREFIX
Configuration Properties prefix.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
DEFAULT_PATH
The default path.- See Also:
-
-
Constructor Details
-
TenantPropagationConfigurationProperties
public TenantPropagationConfigurationProperties()
-
-
Method Details
-
getServiceIdRegex
- Returns:
- a regular expresion to validate the service id against.
-
setServiceIdRegex
Regular expression to match service ID.- Parameters:
serviceIdRegex
- serviceId regular expression
-
getUriRegex
- Returns:
- a regular expression to validate the target request uri against.
-
setUriRegex
Regular expression to match URI.- Parameters:
uriRegex
- uri regular expression
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) WhetherTenantPropagationHttpClientFilter
should be enabled. Default value (false).- Parameters:
enabled
- enabled flag
-
setPath
ConfiguresTenantPropagationHttpClientFilter
path. Default value "/**"- Parameters:
path
- Path to be matched by Token Propagation Filter.
-
getPath
- Specified by:
getPath
in interfaceTenantPropagationConfiguration
- Returns:
- Path to be matched by Token Propagation Filter.
-
getServiceIdPattern
- Specified by:
getServiceIdPattern
in interfaceio.micronaut.http.util.OutgoingRequestProcessorMatcher
-
getUriPattern
- Specified by:
getUriPattern
in interfaceio.micronaut.http.util.OutgoingRequestProcessorMatcher
-