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
DefaultConfigurator . |
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.
|
public CrossTenancyRequestConfigurator(String[] authorizedTenancyIds)
A configurator that sets the cross-tenancy request header, but otherwise behaves like the DefaultConfigurator
.
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)
ClientConfigurator
Customize the ClientBuilder instance.
customizeBuilder
in interface ClientConfigurator
builder
- The client builder.public void customizeClient(javax.ws.rs.client.Client client)
ClientConfigurator
Customize the Client generated by the builder.
customizeClient
in interface ClientConfigurator
client
- The client.Copyright © 2016–2021. All rights reserved.