Interface HttpRequestTenantResolver
-
- All Known Implementing Classes:
CookieTenantResolver,HttpHeaderTenantResolver,PrincipalTenantResolver,SessionTenantResolver,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 HttpRequestTenantResolverAn interface for multi-tenant aware applications which resolve the current identifier for the current request.- Since:
- 2.1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.SerializableresolveTenantIdentifier(@NotNull io.micronaut.http.HttpRequest<?> request)Resolves the current tenant identifier.
-
-
-
Method Detail
-
resolveTenantIdentifier
@NonNull java.io.Serializable resolveTenantIdentifier(@NonNull @NotNull @NotNull io.micronaut.http.HttpRequest<?> request) throws TenantNotFoundExceptionResolves the current tenant identifier.- Parameters:
request- The HTTP request- Returns:
- The tenant identifier
- Throws:
TenantNotFoundException- if tenant not found
-
-