public static final class ClientConfiguration.Builder
extends java.lang.Object
ClientConfiguration
Constructor and Description |
---|
Builder() |
Builder(ClientConfiguration config)
Create a builder that is preconfigured with the given
ClientConfiguration |
Modifier and Type | Method and Description |
---|---|
ClientConfiguration |
getConfig() |
java.util.List<RequestProcessor> |
getRequestProcessors() |
ClientConfiguration.Builder |
setExecutor(java.util.concurrent.Executor executor)
Sets the executor the client must use to process requests.
|
ClientConfiguration.Builder |
setRequestProcessors(java.util.List<RequestProcessor> processors) |
public Builder()
public Builder(ClientConfiguration config)
ClientConfiguration
config
- can be null
public ClientConfiguration.Builder setRequestProcessors(java.util.List<RequestProcessor> processors)
processors
- the request processors that will be used by the
client. overrides the previous value. if set no
default authentication processors will be
automatically added. if set to null
or
not set at all the default authentication processors
will be automatically added.ClientConfiguration.Builder
public java.util.List<RequestProcessor> getRequestProcessors()
public ClientConfiguration.Builder setExecutor(java.util.concurrent.Executor executor)
executor
- executor to be used by the client to process requests.ClientConfiguration.Builder
public ClientConfiguration getConfig()
ClientConfiguration