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(com.oracle.bmc.http.client.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(com.oracle.bmc.http.client.HttpClientBuilder builder)
customizeClient
in interface ClientConfigurator
Copyright © 2016–2024. All rights reserved.