Package com.oracle.bmc.http
Class CrossTenancyRequestConfigurator
- java.lang.Object
-
- com.oracle.bmc.http.CrossTenancyRequestConfigurator
-
- All Implemented Interfaces:
ClientConfigurator
public class CrossTenancyRequestConfigurator extends Object implements ClientConfigurator
A configurator that causes the client to set the cross-tenancy request header.
-
-
Constructor Summary
Constructors Constructor Description CrossTenancyRequestConfigurator(String[] authorizedTenancyIds)
A configurator that sets the cross-tenancy request header, but otherwise behaves like theDefaultConnectorConfigurator
.CrossTenancyRequestConfigurator(String[] authorizedTenancyIds, ClientConfigurator baseConfigurator)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the passed in configurator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customizeClient(com.oracle.bmc.http.client.HttpClientBuilder builder)
-
-
-
Constructor Detail
-
CrossTenancyRequestConfigurator
public CrossTenancyRequestConfigurator(String[] authorizedTenancyIds)
A configurator that sets the cross-tenancy request header, but otherwise behaves like theDefaultConnectorConfigurator
.- Parameters:
authorizedTenancyIds
- tenancy OCIDs that might be accessed by requests made by the client configured
-
CrossTenancyRequestConfigurator
public CrossTenancyRequestConfigurator(String[] authorizedTenancyIds, ClientConfigurator baseConfigurator)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the passed in configurator.- Parameters:
authorizedTenancyIds
- tenancy OCIDs that might be accessed by requests made by the client configuredbaseConfigurator
- base configurator
-
-
Method Detail
-
customizeClient
public void customizeClient(com.oracle.bmc.http.client.HttpClientBuilder builder)
- Specified by:
customizeClient
in interfaceClientConfigurator
-
-