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