Package io.apicurio.registry.mt
Class TenantIdResolver
- java.lang.Object
-
- io.apicurio.registry.mt.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 theCustomTenantConfigResolver
will get triggered first and it will attempt to resolve the tenantId beforeRegistryApplicationServletFilter
, but the TenantRequestFilter will attempt to resolve the tenantId anyway.- Author:
- Fabian Martinez
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description TenantIdResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
resolveTenantId(io.vertx.ext.web.RoutingContext ctx)
boolean
resolveTenantId(String uri, Supplier<String> tenantIdHeaderProvider, Consumer<String> afterSuccessfullUrlResolution)
int
tenantPrefixLength(String tenantId)
-
-
-
Method Detail
-
resolveTenantId
public boolean resolveTenantId(io.vertx.ext.web.RoutingContext ctx)
-
resolveTenantId
public boolean resolveTenantId(String uri, Supplier<String> tenantIdHeaderProvider, Consumer<String> afterSuccessfullUrlResolution)
-
tenantPrefixLength
public int tenantPrefixLength(String tenantId)
-
-