Interface ITenantIdentificationStrategy

All Known Implementing Classes:
UrlBaseTenantIdentificationStrategy

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    extractTenant​(ca.uhn.fhir.util.UrlPathTokenizer theUrlPathTokenizer, RequestDetails theRequestDetails)
    Implementations should use this method to determine the tenant ID based on the incoming request andand populate it in the RequestDetails.setTenantId(String).
    massageServerBaseUrl​(String theFhirServerBase, RequestDetails theRequestDetails)
    Implementations may use this method to tweak the server base URL if necessary based on the tenant ID
  • Method Details

    • extractTenant

      void extractTenant(ca.uhn.fhir.util.UrlPathTokenizer theUrlPathTokenizer, RequestDetails theRequestDetails)
      Implementations should use this method to determine the tenant ID based on the incoming request andand populate it in the RequestDetails.setTenantId(String).
      Parameters:
      theUrlPathTokenizer - The tokenizer which is used to parse the request path
      theRequestDetails - The request details object which can be used to access headers and to populate the tenant ID to
    • massageServerBaseUrl

      String massageServerBaseUrl(String theFhirServerBase, RequestDetails theRequestDetails)
      Implementations may use this method to tweak the server base URL if necessary based on the tenant ID