Class UrlBaseTenantIdentificationStrategy

  • All Implemented Interfaces:
    ITenantIdentificationStrategy

    public class UrlBaseTenantIdentificationStrategy
    extends Object
    implements ITenantIdentificationStrategy
    This class is a tenant identification strategy which assumes that a single path element will be present between the server base URL and individual request.

    For example, with this strategy enabled, given the following URL on a server with base URL http://example.com/base, the server will extract the TENANT-A portion of the URL and use it as the tenant identifier. The request will then proceed to read the resource with ID Patient/123.

    GET http://example.com/base/TENANT-A/Patient/123