public class UrlBaseTenantIdentificationStrategy extends Object implements ITenantIdentificationStrategy
| Constructor and Description |
|---|
UrlBaseTenantIdentificationStrategy() |
| Modifier and Type | Method and 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). |
String |
massageServerBaseUrl(String theFhirServerBase,
RequestDetails theRequestDetails)
Implementations may use this method to tweak the server base URL
if neccesary based on the tenant ID
|
public UrlBaseTenantIdentificationStrategy()
public void extractTenant(ca.uhn.fhir.util.UrlPathTokenizer theUrlPathTokenizer, RequestDetails theRequestDetails)
ITenantIdentificationStrategyRequestDetails.setTenantId(String).extractTenant in interface ITenantIdentificationStrategytheUrlPathTokenizer - The tokenizer which is used to parse the request paththeRequestDetails - The request details object which can be used to access headers and to populate the tenant ID topublic String massageServerBaseUrl(String theFhirServerBase, RequestDetails theRequestDetails)
ITenantIdentificationStrategymassageServerBaseUrl in interface ITenantIdentificationStrategyCopyright © 2014–2019 University Health Network. All rights reserved.