public class CompositeClientConfigurator extends Object implements ClientConfigurator
A client configurator composed of other client configurators. All of the client configurators contained in this composite object will be used in the order they are added.
| Constructor and Description |
|---|
CompositeClientConfigurator(List<ClientConfigurator> configurators)
Create a new composite client 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.
|
void |
customizeRequest(BmcRequest<?> request,
WrappedInvocationBuilder ib)
Customize a request before it is made.
|
boolean |
equals(Object o) |
List<ClientConfigurator> |
getConfigurators() |
int |
hashCode() |
static CompositeClientConfigurator |
of(ClientConfigurator... configurators)
Create a new composite client configurator.
|
public CompositeClientConfigurator(List<ClientConfigurator> configurators)
Create a new composite client configurator.
configurators - the other configurators contained in this compositepublic static CompositeClientConfigurator of(ClientConfigurator... configurators)
Create a new composite client configurator.
configurators - the other configurators contained in this compositepublic 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.public void customizeRequest(BmcRequest<?> request, WrappedInvocationBuilder ib)
ClientConfiguratorCustomize a request before it is made.
customizeRequest in interface ClientConfiguratorrequest - The requestib - the invocation builderpublic List<ClientConfigurator> getConfigurators()
Copyright © 2016–2022. All rights reserved.