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
JerseyDefaultConnectorConfigurator. |
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 |
customizeBuilder(javax.ws.rs.client.ClientBuilder builder)
Customize the ClientBuilder instance.
|
void |
customizeClient(javax.ws.rs.client.Client client)
Customize the Client generated by the builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustomizeRequestpublic CrossTenancyRequestConfigurator(String[] authorizedTenancyIds)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the JerseyDefaultConnectorConfigurator.
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 customizeBuilder(javax.ws.rs.client.ClientBuilder builder)
ClientConfiguratorCustomize the ClientBuilder instance.
customizeBuilder in interface ClientConfiguratorbuilder - The client builder.public void customizeClient(javax.ws.rs.client.Client client)
ClientConfiguratorCustomize the Client generated by the builder.
customizeClient in interface ClientConfiguratorclient - The client.Copyright © 2016–2022. All rights reserved.