@Singleton @Requires(property="micronaut.multitenancy.tenantwriter.cookie.enabled") @Requires(beans=CookieTenantWriterConfiguration.class) public class CookieTenantWriter extends java.lang.Object implements TenantWriter
| Modifier and Type | Field and Description |
|---|---|
protected CookieTenantWriterConfiguration |
cookieTenantWriterConfiguration
The
CookieTenantWriter configuration. |
PREFIX| Constructor and Description |
|---|
CookieTenantWriter(CookieTenantWriterConfiguration cookieTenantWriterConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeTenant(io.micronaut.http.MutableHttpRequest<?> request,
java.io.Serializable tenant)
Writes the Tenant Id in a cookie of the request.
|
protected final CookieTenantWriterConfiguration cookieTenantWriterConfiguration
CookieTenantWriter configuration.public CookieTenantWriter(CookieTenantWriterConfiguration cookieTenantWriterConfiguration)
cookieTenantWriterConfiguration - The CookieTenantWriter configurationpublic void writeTenant(io.micronaut.http.MutableHttpRequest<?> request,
java.io.Serializable tenant)
writeTenant in interface TenantWriterrequest - The MutableHttpRequest instancetenant - Tenant Id