public static final class WeatherClient.ClientBuilder
extends java.lang.Object
| Constructor and Description |
|---|
WeatherClient.ClientBuilder() |
| Modifier and Type | Method and Description |
|---|---|
WeatherClient.ClientBuilder |
attach(Context ctx)
Attach a
Context to the WeatherClient |
WeatherClient |
build()
Build the weather client setting the right parameters
|
WeatherClient.ClientBuilder |
config(WeatherConfig config)
Set the configuration (
WeatherConfig) |
WeatherClient.ClientBuilder |
httpClient(java.lang.Class httpClient)
Attach the http Client that has to be used to make requests.
|
WeatherClient.ClientBuilder |
provider(IProviderType providerType)
Set the provider (
IProviderType) |
public WeatherClient.ClientBuilder attach(Context ctx)
Context to the WeatherClientpublic WeatherClient.ClientBuilder provider(IProviderType providerType)
IProviderType)public WeatherClient.ClientBuilder config(WeatherConfig config)
WeatherConfig)public WeatherClient.ClientBuilder httpClient(java.lang.Class httpClient)
StandardHttpClientpublic WeatherClient build() throws WeatherProviderInstantiationException