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 theJerseyDefaultConnectorConfigurator.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 voidcustomizeBuilder(javax.ws.rs.client.ClientBuilder builder)Customize the ClientBuilder instance.voidcustomizeClient(javax.ws.rs.client.Client client)Customize the Client generated by the builder.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.http.ClientConfigurator
customizeRequest
-
-
-
-
Constructor Detail
-
CrossTenancyRequestConfigurator
public CrossTenancyRequestConfigurator(String[] authorizedTenancyIds)
A configurator that sets the cross-tenancy request header, but otherwise behaves like theJerseyDefaultConnectorConfigurator.- 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
-
customizeBuilder
public void customizeBuilder(javax.ws.rs.client.ClientBuilder builder)
Description copied from interface:ClientConfiguratorCustomize the ClientBuilder instance.- Specified by:
customizeBuilderin interfaceClientConfigurator- Parameters:
builder- The client builder.
-
customizeClient
public void customizeClient(javax.ws.rs.client.Client client)
Description copied from interface:ClientConfiguratorCustomize the Client generated by the builder.- Specified by:
customizeClientin interfaceClientConfigurator- Parameters:
client- The client.
-
-