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 Details

  • Constructor Details

    • TenantPropagationConfigurationProperties

      public TenantPropagationConfigurationProperties()
  • Method Details

    • getServiceIdRegex

      public String getServiceIdRegex()
      Returns:
      a regular expresion to validate the service id against.
    • setServiceIdRegex

      public void setServiceIdRegex(String serviceIdRegex)
      Regular expression to match service ID.
      Parameters:
      serviceIdRegex - serviceId regular expression
    • getUriRegex

      public String getUriRegex()
      Returns:
      a regular expression to validate the target request uri against.
    • setUriRegex

      public void setUriRegex(String uriRegex)
      Regular expression to match URI.
      Parameters:
      uriRegex - uri regular expression
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      Whether TenantPropagationHttpClientFilter should be enabled. Default value (false).
      Parameters:
      enabled - enabled flag
    • setPath

      public void setPath(String path)
      Configures TenantPropagationHttpClientFilter path. Default value "/**"
      Parameters:
      path - Path to be matched by Token Propagation Filter.
    • getPath

      public String getPath()
      Specified by:
      getPath in interface TenantPropagationConfiguration
      Returns:
      Path to be matched by Token Propagation Filter.
    • getServiceIdPattern

      public Pattern getServiceIdPattern()
      Specified by:
      getServiceIdPattern in interface io.micronaut.http.util.OutgoingRequestProcessorMatcher
    • getUriPattern

      public Pattern getUriPattern()
      Specified by:
      getUriPattern in interface io.micronaut.http.util.OutgoingRequestProcessorMatcher