Interface WeatherEndpointBuilderFactory.AdvancedWeatherEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,WeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder,WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder
- Enclosing interface:
- WeatherEndpointBuilderFactory
public static interface WeatherEndpointBuilderFactory.AdvancedWeatherEndpointBuilder
extends WeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder, WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder
Advanced builder for endpoint for the Weather component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()geoLocationProvider(String geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set.geoLocationProvider(org.apache.camel.component.weather.geolocation.GeoLocationProvider geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set.httpClient(String httpClient) To use an existing configured http client (for example with http proxy).httpClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) To use an existing configured http client (for example with http proxy).Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.endpoint.dsl.WeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder
bridgeErrorHandler, bridgeErrorHandler, exceptionHandler, exceptionHandler, exchangePattern, exchangePattern, pollStrategy, pollStrategyMethods inherited from interface org.apache.camel.builder.endpoint.dsl.WeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder
lazyStartProducer, lazyStartProducer
-
Method Details
-
basic
- Specified by:
basicin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder- Specified by:
basicin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder
-
geoLocationProvider
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointBuilder geoLocationProvider(org.apache.camel.component.weather.geolocation.GeoLocationProvider geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set. The default implementaion uses the ipstack API and requires geolocationAccessKey and geolocationRequestHostIP. The option is a: <code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code> type. Group: advanced- Specified by:
geoLocationProviderin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder- Specified by:
geoLocationProviderin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder- Parameters:
geoLocationProvider- the value to set- Returns:
- the dsl builder
-
geoLocationProvider
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointBuilder geoLocationProvider(String geoLocationProvider) A custum geolocation provider to determine the longitude and latitude to use when no location information is set. The default implementaion uses the ipstack API and requires geolocationAccessKey and geolocationRequestHostIP. The option will be converted to a <code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code> type. Group: advanced- Specified by:
geoLocationProviderin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder- Specified by:
geoLocationProviderin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder- Parameters:
geoLocationProvider- the value to set- Returns:
- the dsl builder
-
httpClient
default WeatherEndpointBuilderFactory.AdvancedWeatherEndpointBuilder httpClient(org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) To use an existing configured http client (for example with http proxy). The option is a: <code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type. Group: advanced- Specified by:
httpClientin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder- Specified by:
httpClientin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder- Parameters:
httpClient- the value to set- Returns:
- the dsl builder
-
httpClient
To use an existing configured http client (for example with http proxy). The option will be converted to a <code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type. Group: advanced- Specified by:
httpClientin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointConsumerBuilder- Specified by:
httpClientin interfaceWeatherEndpointBuilderFactory.AdvancedWeatherEndpointProducerBuilder- Parameters:
httpClient- the value to set- Returns:
- the dsl builder
-