Package io.micronaut.multitenancy.writer
Interface TenantWriter
- All Known Implementing Classes:
CookieTenantWriter
,HttpHeaderTenantWriter
public interface TenantWriter
Responsible for writing the tenant in the request.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTenant
(io.micronaut.http.MutableHttpRequest<?> request, Serializable tenant) Writes the token to the request.
-
Field Details
-
PREFIX
Tenant Writer prefix.- See Also:
-
-
Method Details
-
writeTenant
Writes the token to the request.- Parameters:
request
- TheMutableHttpRequest
instancetenant
- tenant Id
-