public class CrossTenancyRequestConfigurator extends Object implements ClientConfigurator
A configurator that causes the client to set the cross-tenancy request header.
| Constructor and Description |
|---|
CrossTenancyRequestConfigurator(String[] authorizedTenancyIds)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the
DefaultConnectorConfigurator. |
CrossTenancyRequestConfigurator(String[] authorizedTenancyIds,
ClientConfigurator baseConfigurator)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the
passed in configurator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
customizeClient(HttpClientBuilder builder) |
public CrossTenancyRequestConfigurator(String[] authorizedTenancyIds)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the
DefaultConnectorConfigurator.
authorizedTenancyIds - tenancy OCIDs that might be accessed by requests made by the
client configuredpublic CrossTenancyRequestConfigurator(String[] authorizedTenancyIds, ClientConfigurator baseConfigurator)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the passed in configurator.
authorizedTenancyIds - tenancy OCIDs that might be accessed by requests made by the
client configuredbaseConfigurator - base configuratorpublic void customizeClient(HttpClientBuilder builder)
customizeClient in interface ClientConfiguratorCopyright © 2016–2024. All rights reserved.