Class TenantIdResolver


  • @ApplicationScoped
    public class TenantIdResolver
    extends Object
    This class centralizes the logic to resolve the tenantId from an http request. In deployments with authentication enabled the CustomTenantConfigResolver will get triggered first and it will attempt to resolve the tenantId before RegistryApplicationServletFilter, but the TenantRequestFilter will attempt to resolve the tenantId anyway.
    Author:
    Fabian Martinez
    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • TenantIdResolver

        public TenantIdResolver()
    • Method Detail

      • resolveTenantId

        public boolean resolveTenantId​(io.vertx.ext.web.RoutingContext ctx)
      • tenantPrefixLength

        public int tenantPrefixLength​(String tenantId)