@Singleton @Requires(property="micronaut.multitenancy.tenantwriter.httpheader.enabled") @Requires(beans=HttpHeaderTenantWriterConfiguration.class) public class HttpHeaderTenantWriter extends java.lang.Object implements TenantWriter
Modifier and Type | Field and Description |
---|---|
protected HttpHeaderTenantWriterConfiguration |
httpHeaderTenantWriterConfiguration
The
HttpHeaderTenantWriter configuration. |
PREFIX
Constructor and Description |
---|
HttpHeaderTenantWriter(HttpHeaderTenantWriterConfiguration httpHeaderTenantWriterConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getHeaderName() |
void |
writeTenant(io.micronaut.http.MutableHttpRequest<?> request,
java.io.Serializable tenant)
Writes the token to the request.
|
protected final HttpHeaderTenantWriterConfiguration httpHeaderTenantWriterConfiguration
HttpHeaderTenantWriter
configuration.public HttpHeaderTenantWriter(HttpHeaderTenantWriterConfiguration httpHeaderTenantWriterConfiguration)
httpHeaderTenantWriterConfiguration
- The HttpHeaderTenantWriter
configurationprotected java.lang.String getHeaderName()
public void writeTenant(io.micronaut.http.MutableHttpRequest<?> request, java.io.Serializable tenant)
writeTenant
in interface TenantWriter
request
- The MutableHttpRequest
instancetenant
- Tenant Id