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

io.progix.dropwizard.jooq.tenancy.PathParamTenantProvider Maven / Gradle / Ivy

The newest version!
package io.progix.dropwizard.jooq.tenancy;

import org.glassfish.jersey.server.ContainerRequest;

public abstract class PathParamTenantProvider implements TenantProvider {

    private final String pathParamIdentifier;

    public PathParamTenantProvider(String pathParamIdentifier) {
        this.pathParamIdentifier = pathParamIdentifier;
    }

    @Override
    public String getTenantIdentifier(ContainerRequest request) {
        return request.getUriInfo().getPathParameters().getFirst(pathParamIdentifier);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy