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