| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CMAClient |
build() |
CMAClient.Builder |
setAccessToken(String accessToken)
Sets the access token for this client.
|
CMAClient.Builder |
setCallbackExecutor(Executor executor)
Sets the executor to use when invoking asynchronous callbacks.
|
CMAClient.Builder |
setCallFactory(okhttp3.Call.Factory callFactory)
Sets a custom HTTP call factory.
|
CMAClient.Builder |
setEndpoint(String remoteUrl)
Overrides the default remote URL.
|
CMAClient.Builder |
setLogger(Logger logger)
Sets the logger to be used for logging all network requests or all application requests.
|
CMAClient.Builder |
setLogLevel(Logger.Level logLevel)
Sets the log level for this client.
|
public CMAClient.Builder setEndpoint(String remoteUrl)
remoteUrl - String representing the remote URLCMAClient.Builder instancepublic CMAClient.Builder setAccessToken(String accessToken)
accessToken - access tokenCMAClient.Builder instancepublic CMAClient.Builder setCallFactory(okhttp3.Call.Factory callFactory)
callFactory - Call.Factory instanceBuilder instancepublic CMAClient.Builder setCallbackExecutor(Executor executor)
executor - Executor on which any CMACallback methods will be invoked. This
defaults to execute on the main thread for Android projects. For non-Android
projects this defaults to the same thread of the HTTP client.Builder instancepublic CMAClient.Builder setLogger(Logger logger)
logger - LoggerBuilder instancepublic CMAClient.Builder setLogLevel(Logger.Level logLevel)
logLevel - Logger.Level valueBuilder instancepublic CMAClient build()
CMAClient out of this CMAClient.Builder.Copyright © 2016 Contentful, GmbH.. All Rights Reserved.