Class UrlTenantSelectionInterceptor
java.lang.Object
ca.uhn.fhir.rest.client.interceptor.UrlTenantSelectionInterceptor
This interceptor adds a path element representing the tenant ID to each client request. It is primarily
intended to be used with clients that are accessing servers using
URL Base Multitenancy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the tenant IDvoid
request
(ca.uhn.fhir.rest.client.api.IRestfulClient theClient, ca.uhn.fhir.rest.client.api.IHttpRequest theRequest) void
setTenantId
(String theTenantId) Sets the tenant ID
-
Constructor Details
-
UrlTenantSelectionInterceptor
public UrlTenantSelectionInterceptor()Constructor -
UrlTenantSelectionInterceptor
Constructor- Parameters:
theTenantId
- The tenant ID to add to URL base
-
-
Method Details
-
getTenantId
Returns the tenant ID -
setTenantId
Sets the tenant ID -
request
public void request(ca.uhn.fhir.rest.client.api.IRestfulClient theClient, ca.uhn.fhir.rest.client.api.IHttpRequest theRequest)
-