All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qwlabs.quarkus.tenant.TenantConfig Maven / Gradle / Ivy

There is a newer version: 0.2.354
Show newest version
package com.qwlabs.quarkus.tenant;

import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;

import java.util.List;
import java.util.Set;

@ConfigMapping(prefix = "quarkus.tenant")
public interface TenantConfig {
    String SOURCE_QUERY = "query";
    String SOURCE_HEADER = "header";
    String SOURCE_COOKIE = "cookie";

    @WithDefault("false")
    boolean enabled();

    @WithDefault("query,header,cookie")
    List sources();

    @WithDefault("X-TENANT-ID")
    Set cookieNames();

    @WithDefault("X-TENANT-ID")
    Set headerNames();

    @WithDefault("tenant_id")
    Set queryNames();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy