Interface TenantResolver

All Known Implementing Classes:
FixedTenantResolver, SubdomainTenantResolver
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TenantResolver
Resolver of the tenant ID, in case multi-tenancy is used.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(io.vertx.ext.web.RoutingContext context, javax.ws.rs.core.SecurityContext securityContext)
    Returns a tenant identifier given a RoutingContext and a SecurityContext.
  • Method Details

    • resolve

      Optional<String> resolve(io.vertx.ext.web.RoutingContext context, javax.ws.rs.core.SecurityContext securityContext)
      Returns a tenant identifier given a RoutingContext and a SecurityContext.
      Parameters:
      context - the routing context
      securityContext - the security context
      Returns:
      The tenant identifier. If empty, indicates that the multi-tenancy is disabled.