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.
|
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 List<ClientConfigurator> getConfigurators()
Copyright © 2016–2021. All rights reserved.