public static class FlagsmithClient.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
FlagsmithClient |
build() |
FlagsmithClient.Builder |
enableLogging()
Enables logging, the project importing this module must include an implementation slf4j in their pom.
|
FlagsmithClient.Builder |
setApiKey(String apiKey)
Set the environment API key
|
FlagsmithClient.Builder |
withApiUrl(String apiUrl)
Set the base URL for Flagsmith API, overriding default one.
|
FlagsmithClient.Builder |
withConfiguration(FlagsmithConfig config)
Override default FlagsmithConfig for Flagsmith API.
|
FlagsmithClient.Builder |
withCustomHttpHeaders(HashMap<String,String> customHeaders)
Add custom HTTP headers to the calls.
|
public FlagsmithClient.Builder setApiKey(String apiKey)
apiKey - the api key for environmentpublic FlagsmithClient.Builder enableLogging()
public FlagsmithClient.Builder withConfiguration(FlagsmithConfig config)
config - an FlagsmithConfig to override default one.public FlagsmithClient.Builder withApiUrl(String apiUrl)
apiUrl - the new base URI for the API.public FlagsmithClient.Builder withCustomHttpHeaders(HashMap<String,String> customHeaders)
customHeaders - headers.public FlagsmithClient build()
Copyright © 2021. All rights reserved.