This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 711723da0eb3 CAMEL-23832: camel-weather - improve the component and
option descriptions (#30948)
711723da0eb3 is described below
commit 711723da0eb379abc94bb2e61c6dbf0da54a0136
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:53:46 2026 +0100
CAMEL-23832: camel-weather - improve the component and option descriptions
(#30948)
This commit rewrites the component description, the texts of 20 endpoint
options and the 2 headers of weather. The
new texts give the OpenWeatherMap query parameter that each option sets,
and which of lat and lon, zip, ids and location
wins. The old geolocationRequestHostIP text said it was the IP of the
access key, while it is the IP address that ipstack
locates. The old period text said only 5, 7 or 14 days, while any number is
sent as cnt.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-weather is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../apache/camel/catalog/components/weather.json | 46 +-
.../camel/catalog/docs/weather-component.adoc | 2 +-
.../apache/camel/component/weather/weather.json | 46 +-
.../src/main/docs/weather-component.adoc | 2 +-
.../component/weather/WeatherConfiguration.java | 158 +++----
.../camel/component/weather/WeatherConstants.java | 9 +-
.../camel/component/weather/WeatherEndpoint.java | 2 +-
.../component/ComponentsBuilderFactory.java | 2 +-
.../dsl/WeatherComponentBuilderFactory.java | 4 +-
.../builder/endpoint/EndpointHeaderBuilders.java | 2 +-
.../builder/endpoint/StaticEndpointBuilders.java | 4 +-
.../dsl/WeatherEndpointBuilderFactory.java | 488 +++++++++++++--------
tasks/component-descriptions.md | 2 +-
13 files changed, 446 insertions(+), 321 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weather.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weather.json
index 722614426bf9..06aac3096b3c 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weather.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weather.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "weather",
"title": "Weather",
- "description": "Poll the weather information from Open Weather Map.",
+ "description": "Query the current weather and weather forecasts from
OpenWeatherMap.",
"deprecated": false,
"firstVersion": "2.12.0",
"label": "api",
@@ -31,8 +31,8 @@
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
},
"headers": {
- "CamelWeatherLocation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "Used by the producer to override the endpoint location and use
the location from this header instead.", "constantName":
"org.apache.camel.component.weather.WeatherConstants#WEATHER_LOCATION" },
- "CamelWeatherQuery": { "index": 1, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
original query URL sent to the Open Weather Map site", "constantName":
"org.apache.camel.component.weather.WeatherConstants#WEATHER_QUERY" }
+ "CamelWeatherLocation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The location to query, in the format of the location option,
which this header replaces for the producer. The producer ignores it when lat
and lon, zip or ids are set, and current or an empty value looks up the
location.", "constantName": "org.apache.camel [...]
+ "CamelWeatherQuery": { "index": 1, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
URL of the request that the consumer or the producer sent to OpenWeatherMap,
with its query parameters.", "constantName":
"org.apache.camel.component.weather.WeatherConstants#WEATHER_QUERY" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text" ], "javaType": "java.lang.String",
"format": "json", "dependsOn": [ "mode", "headerName" ], "description": "The
OpenWeatherMap response as a String: JSON, or XML or HTML with mode. With
headerName the response is in that header and the body is null" },
@@ -41,29 +41,29 @@
},
"properties": {
"name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The name value is not
used." },
- "headerName": { "index": 1, "kind": "parameter", "displayName": "Header
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "To store the weather
result in this header instead of the message body. This is useable if you want
to keep curren [...]
- "language": { "index": 2, "kind": "parameter", "displayName": "Language",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherLanguage", "enum": [ "en", "ru",
"it", "es", "sp", "uk", "ua", "de", "pt", "ro", "pl", "fi", "nl", "fr", "bg",
"sv", "se", "zh_tw", "zh", "zh_cn", "tr", "hr", "ca" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "en",
"configurationClass": "org.apache.camel.compo [...]
- "mode": { "index": 3, "kind": "parameter", "displayName": "Mode", "group":
"common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherMode", "enum": [ "HTML", "JSON",
"XML" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "JSON", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The output format of the
weather data." },
- "period": { "index": 4, "kind": "parameter", "displayName": "Period",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "If null, the current
weather will be returned, else use values of 5, 7, 14 days. Only the numeric
value for the forecast pe [...]
- "units": { "index": 5, "kind": "parameter", "displayName": "Units",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherUnits", "enum": [ "IMPERIAL",
"METRIC" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The units for
temperature measurement." },
- "weatherApi": { "index": 6, "kind": "parameter", "displayName": "Weather
Api", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "org.apache.camel.component.weather.WeatherApi", "enum": [
"Current", "Station", "Hourly", "Daily" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The API to use (current,
forecast\ [...]
+ "headerName": { "index": 1, "kind": "parameter", "displayName": "Header
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The name of the header
to store the response in, instead of the message body. The producer then leaves
the body as [...]
+ "language": { "index": 2, "kind": "parameter", "displayName": "Language",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherLanguage", "enum": [ "en", "ru",
"it", "es", "sp", "uk", "ua", "de", "pt", "ro", "pl", "fi", "nl", "fr", "bg",
"sv", "se", "zh_tw", "zh", "zh_cn", "tr", "hr", "ca" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "en",
"configurationClass": "org.apache.camel.compo [...]
+ "mode": { "index": 3, "kind": "parameter", "displayName": "Mode", "group":
"common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherMode", "enum": [ "HTML", "JSON",
"XML" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "JSON", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The format of the
response from OpenWeat [...]
+ "period": { "index": 4, "kind": "parameter", "displayName": "Period",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The length of a
forecast, sent as the cnt query parameter: the number of days of the daily
forecast, or the number of 3-hou [...]
+ "units": { "index": 5, "kind": "parameter", "displayName": "Units",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherUnits", "enum": [ "IMPERIAL",
"METRIC" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The units of measurement
in the response, for example of tempe [...]
+ "weatherApi": { "index": 6, "kind": "parameter", "displayName": "Weather
Api", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "org.apache.camel.component.weather.WeatherApi", "enum": [
"Current", "Station", "Hourly", "Daily" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The OpenWeatherMap API
to call. St [...]
"sendEmptyMessageWhenIdle": { "index": 7, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 8, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 9, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
"exchangePattern": { "index": 10, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
"lazyStartProducer": { "index": 12, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "geoLocationProvider": { "index": 13, "kind": "parameter", "displayName":
"Geo Location Provider", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.apache.camel.component.weather.geolocation.GeoLocationProvider",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "A custom geolocation
provider to d [...]
- "httpClient": { "index": 14, "kind": "parameter", "displayName": "Http
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType":
"org.apache.hc.client5.http.impl.classic.CloseableHttpClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "To use an existing
configured http client (for example with [...]
- "cnt": { "index": 15, "kind": "parameter", "displayName": "Cnt", "group":
"filter", "label": "filter", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Number of results to be
found" },
- "ids": { "index": 16, "kind": "parameter", "displayName": "Ids", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "List of id's of
city\/stations. You can separate multiple ids by comma." },
- "lat": { "index": 17, "kind": "parameter", "displayName": "Lat", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Latitude of location.
You can use lat and lon options instead of location. For boxed queries this is
the bottom latitude." },
- "location": { "index": 18, "kind": "parameter", "displayName": "Location",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "If null Camel will try
and determine your current location using the geolocation of your ip address,
else specif [...]
- "lon": { "index": 19, "kind": "parameter", "displayName": "Lon", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Longitude of location.
You can use lat and lon options instead of location. For boxed queries this is
the left longtitude." },
- "rightLon": { "index": 20, "kind": "parameter", "displayName": "Right
Lon", "group": "filter", "label": "filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "For boxed queries this
is the right longtitude. Needs to be used in combination with topLat and zoom."
},
- "topLat": { "index": 21, "kind": "parameter", "displayName": "Top Lat",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "For boxed queries this
is the top latitude. Needs to be used in combination with rightLon and zoom." },
- "zip": { "index": 22, "kind": "parameter", "displayName": "Zip", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Zip-code, e.g. 94040,us"
},
- "zoom": { "index": 23, "kind": "parameter", "displayName": "Zoom",
"group": "filter", "label": "filter", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "For boxed queries this
is the zoom. Needs to be used in combination with rightLon and topLat." },
+ "geoLocationProvider": { "index": 13, "kind": "parameter", "displayName":
"Geo Location Provider", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.apache.camel.component.weather.geolocation.GeoLocationProvider",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "A custom
org.apache.camel.componen [...]
+ "httpClient": { "index": 14, "kind": "parameter", "displayName": "Http
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType":
"org.apache.hc.client5.http.impl.classic.CloseableHttpClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "To use a custom
org.apache.hc.client5.http.impl.classic.Clos [...]
+ "cnt": { "index": 15, "kind": "parameter", "displayName": "Cnt", "group":
"filter", "label": "filter", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The number of results,
sent as the cnt query parameter, for example the number of cities or stations
to find around lat [...]
+ "ids": { "index": 16, "kind": "parameter", "displayName": "Ids", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The ID of a city, or of
a station with weatherApi Station, or a comma-separated list of city IDs to get
the current weathe [...]
+ "lat": { "index": 17, "kind": "parameter", "displayName": "Lat", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The latitude of the
location, used together with lon, and taking precedence over the zip, ids and
location options. For a [...]
+ "location": { "index": 18, "kind": "parameter", "displayName": "Location",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The city to get the
weather for, by name and optionally a country code, for example London,uk. If
empty or curre [...]
+ "lon": { "index": 19, "kind": "parameter", "displayName": "Lon", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The longitude of the
location, used together with lat. For a bounding box query (with rightLon and
topLat) it is the left [...]
+ "rightLon": { "index": 20, "kind": "parameter", "displayName": "Right
Lon", "group": "filter", "label": "filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The right longitude of a
bounding box query, which also needs lat, lon, topLat and zoom. The query gets
the wea [...]
+ "topLat": { "index": 21, "kind": "parameter", "displayName": "Top Lat",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The top latitude of a
bounding box query, which also needs lat, lon, rightLon and zoom." },
+ "zip": { "index": 22, "kind": "parameter", "displayName": "Zip", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The zip code and the
country code of the location, for example 94040,us. It is used when lat and lon
are not set, and take [...]
+ "zoom": { "index": 23, "kind": "parameter", "displayName": "Zoom",
"group": "filter", "label": "filter", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The map zoom level of a
bounding box query, which also needs lat, lon, rightLon and topLat." },
"backoffErrorThreshold": { "index": 24, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 25, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 26, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -79,8 +79,8 @@
"startScheduler": { "index": 36, "kind": "parameter", "displayName":
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Whether the scheduler should be auto started." },
"timeUnit": { "index": 37, "kind": "parameter", "displayName": "Time
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS",
"DAYS" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and
delay options." },
"useFixedDelay": { "index": 38, "kind": "parameter", "displayName": "Use
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in
JDK for details." },
- "appid": { "index": 39, "kind": "parameter", "displayName": "Appid",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "APPID ID used to
authenticate the user connected to the API Server" },
- "geolocationAccessKey": { "index": 40, "kind": "parameter", "displayName":
"Geolocation Access Key", "group": "security", "label": "security", "required":
true, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The geolocation service
now needs an accessKey to be used" },
- "geolocationRequestHostIP": { "index": 41, "kind": "parameter",
"displayName": "Geolocation Request Host IP", "group": "security", "label":
"security", "required": true, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The geolocation service
now needs to specify the IP associated to the acce [...]
+ "appid": { "index": 39, "kind": "parameter", "displayName": "Appid",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The API key of the
OpenWeatherMap account, sent as the APPID query parameter of every request." },
+ "geolocationAccessKey": { "index": 40, "kind": "parameter", "displayName":
"Geolocation Access Key", "group": "security", "label": "security", "required":
true, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The access key of the
ipstack API, which the default geoLocati [...]
+ "geolocationRequestHostIP": { "index": 41, "kind": "parameter",
"displayName": "Geolocation Request Host IP", "group": "security", "label":
"security", "required": true, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The IP address that the
default geoLocationProvider looks up with the ipst [...]
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weather-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weather-component.adoc
index 4ba0df20908b..4c4ab5532955 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weather-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/weather-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Weather
:shortname: weather
:artifactid: camel-weather
-:description: Poll the weather information from Open Weather Map.
+:description: Query the current weather and weather forecasts from
OpenWeatherMap.
:since: 2.12
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-weather/src/generated/resources/META-INF/org/apache/camel/component/weather/weather.json
b/components/camel-weather/src/generated/resources/META-INF/org/apache/camel/component/weather/weather.json
index 722614426bf9..06aac3096b3c 100644
---
a/components/camel-weather/src/generated/resources/META-INF/org/apache/camel/component/weather/weather.json
+++
b/components/camel-weather/src/generated/resources/META-INF/org/apache/camel/component/weather/weather.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "weather",
"title": "Weather",
- "description": "Poll the weather information from Open Weather Map.",
+ "description": "Query the current weather and weather forecasts from
OpenWeatherMap.",
"deprecated": false,
"firstVersion": "2.12.0",
"label": "api",
@@ -31,8 +31,8 @@
"healthCheckProducerEnabled": { "index": 4, "kind": "property",
"displayName": "Health Check Producer Enabled", "group": "health", "label":
"health", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Used for enabling or disabling all producer based health checks
from this component. Notice: Camel has by default disabled all producer based
health-checks. You can turn on producer [...]
},
"headers": {
- "CamelWeatherLocation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "Used by the producer to override the endpoint location and use
the location from this header instead.", "constantName":
"org.apache.camel.component.weather.WeatherConstants#WEATHER_LOCATION" },
- "CamelWeatherQuery": { "index": 1, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
original query URL sent to the Open Weather Map site", "constantName":
"org.apache.camel.component.weather.WeatherConstants#WEATHER_QUERY" }
+ "CamelWeatherLocation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "producer", "required": false, "javaType":
"String", "deprecated": false, "autowired": false, "secret": false,
"description": "The location to query, in the format of the location option,
which this header replaces for the producer. The producer ignores it when lat
and lon, zip or ids are set, and current or an empty value looks up the
location.", "constantName": "org.apache.camel [...]
+ "CamelWeatherQuery": { "index": 1, "kind": "header", "displayName": "",
"group": "common", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
URL of the request that the consumer or the producer sent to OpenWeatherMap,
with its query parameters.", "constantName":
"org.apache.camel.component.weather.WeatherConstants#WEATHER_QUERY" }
},
"bodyTypes": {
"consumerOut": { "carriers": [ "text" ], "javaType": "java.lang.String",
"format": "json", "dependsOn": [ "mode", "headerName" ], "description": "The
OpenWeatherMap response as a String: JSON, or XML or HTML with mode. With
headerName the response is in that header and the body is null" },
@@ -41,29 +41,29 @@
},
"properties": {
"name": { "index": 0, "kind": "path", "displayName": "Name", "group":
"common", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The name value is not
used." },
- "headerName": { "index": 1, "kind": "parameter", "displayName": "Header
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "To store the weather
result in this header instead of the message body. This is useable if you want
to keep curren [...]
- "language": { "index": 2, "kind": "parameter", "displayName": "Language",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherLanguage", "enum": [ "en", "ru",
"it", "es", "sp", "uk", "ua", "de", "pt", "ro", "pl", "fi", "nl", "fr", "bg",
"sv", "se", "zh_tw", "zh", "zh_cn", "tr", "hr", "ca" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "en",
"configurationClass": "org.apache.camel.compo [...]
- "mode": { "index": 3, "kind": "parameter", "displayName": "Mode", "group":
"common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherMode", "enum": [ "HTML", "JSON",
"XML" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "JSON", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The output format of the
weather data." },
- "period": { "index": 4, "kind": "parameter", "displayName": "Period",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "If null, the current
weather will be returned, else use values of 5, 7, 14 days. Only the numeric
value for the forecast pe [...]
- "units": { "index": 5, "kind": "parameter", "displayName": "Units",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherUnits", "enum": [ "IMPERIAL",
"METRIC" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The units for
temperature measurement." },
- "weatherApi": { "index": 6, "kind": "parameter", "displayName": "Weather
Api", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "org.apache.camel.component.weather.WeatherApi", "enum": [
"Current", "Station", "Hourly", "Daily" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The API to use (current,
forecast\ [...]
+ "headerName": { "index": 1, "kind": "parameter", "displayName": "Header
Name", "group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The name of the header
to store the response in, instead of the message body. The producer then leaves
the body as [...]
+ "language": { "index": 2, "kind": "parameter", "displayName": "Language",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherLanguage", "enum": [ "en", "ru",
"it", "es", "sp", "uk", "ua", "de", "pt", "ro", "pl", "fi", "nl", "fr", "bg",
"sv", "se", "zh_tw", "zh", "zh_cn", "tr", "hr", "ca" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "en",
"configurationClass": "org.apache.camel.compo [...]
+ "mode": { "index": 3, "kind": "parameter", "displayName": "Mode", "group":
"common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherMode", "enum": [ "HTML", "JSON",
"XML" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "JSON", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The format of the
response from OpenWeat [...]
+ "period": { "index": 4, "kind": "parameter", "displayName": "Period",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The length of a
forecast, sent as the cnt query parameter: the number of days of the daily
forecast, or the number of 3-hou [...]
+ "units": { "index": 5, "kind": "parameter", "displayName": "Units",
"group": "common", "label": "", "required": false, "type": "enum", "javaType":
"org.apache.camel.component.weather.WeatherUnits", "enum": [ "IMPERIAL",
"METRIC" ], "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The units of measurement
in the response, for example of tempe [...]
+ "weatherApi": { "index": 6, "kind": "parameter", "displayName": "Weather
Api", "group": "common", "label": "", "required": false, "type": "enum",
"javaType": "org.apache.camel.component.weather.WeatherApi", "enum": [
"Current", "Station", "Hourly", "Daily" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The OpenWeatherMap API
to call. St [...]
"sendEmptyMessageWhenIdle": { "index": 7, "kind": "parameter",
"displayName": "Send Empty Message When Idle", "group": "consumer", "label":
"consumer", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "If the polling consumer did not poll any files, you can
enable this option to send an empty message (no body) instead." },
"bridgeErrorHandler": { "index": 8, "kind": "parameter", "displayName":
"Bridge Error Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Allows for bridging the consumer to the
Camel routing Error Handler, which mean any exceptions (if possible) occurred
while the Camel consumer is trying to pickup incoming [...]
"exceptionHandler": { "index": 9, "kind": "parameter", "displayName":
"Exception Handler", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "object", "javaType":
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.",
"deprecated": false, "autowired": false, "secret": false, "description": "To
let the consumer use a custom ExceptionHandler. Notice if the option
bridgeErrorHandler is enabled then this option is not in use. By def [...]
"exchangePattern": { "index": 10, "kind": "parameter", "displayName":
"Exchange Pattern", "group": "consumer (advanced)", "label":
"consumer,advanced", "required": false, "type": "enum", "javaType":
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ],
"deprecated": false, "autowired": false, "secret": false, "description": "Sets
the exchange pattern when the consumer creates an exchange." },
"pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll
Strategy", "group": "consumer (advanced)", "label": "consumer,advanced",
"required": false, "type": "object", "javaType":
"org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false,
"autowired": false, "secret": false, "description": "A pluggable
org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your
custom implementation to control error handling usually occurred during the po
[...]
"lazyStartProducer": { "index": 12, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produ [...]
- "geoLocationProvider": { "index": 13, "kind": "parameter", "displayName":
"Geo Location Provider", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.apache.camel.component.weather.geolocation.GeoLocationProvider",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "A custom geolocation
provider to d [...]
- "httpClient": { "index": 14, "kind": "parameter", "displayName": "Http
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType":
"org.apache.hc.client5.http.impl.classic.CloseableHttpClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "To use an existing
configured http client (for example with [...]
- "cnt": { "index": 15, "kind": "parameter", "displayName": "Cnt", "group":
"filter", "label": "filter", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Number of results to be
found" },
- "ids": { "index": 16, "kind": "parameter", "displayName": "Ids", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "List of id's of
city\/stations. You can separate multiple ids by comma." },
- "lat": { "index": 17, "kind": "parameter", "displayName": "Lat", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Latitude of location.
You can use lat and lon options instead of location. For boxed queries this is
the bottom latitude." },
- "location": { "index": 18, "kind": "parameter", "displayName": "Location",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "If null Camel will try
and determine your current location using the geolocation of your ip address,
else specif [...]
- "lon": { "index": 19, "kind": "parameter", "displayName": "Lon", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Longitude of location.
You can use lat and lon options instead of location. For boxed queries this is
the left longtitude." },
- "rightLon": { "index": 20, "kind": "parameter", "displayName": "Right
Lon", "group": "filter", "label": "filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "For boxed queries this
is the right longtitude. Needs to be used in combination with topLat and zoom."
},
- "topLat": { "index": 21, "kind": "parameter", "displayName": "Top Lat",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "For boxed queries this
is the top latitude. Needs to be used in combination with rightLon and zoom." },
- "zip": { "index": 22, "kind": "parameter", "displayName": "Zip", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "Zip-code, e.g. 94040,us"
},
- "zoom": { "index": 23, "kind": "parameter", "displayName": "Zoom",
"group": "filter", "label": "filter", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "For boxed queries this
is the zoom. Needs to be used in combination with rightLon and topLat." },
+ "geoLocationProvider": { "index": 13, "kind": "parameter", "displayName":
"Geo Location Provider", "group": "advanced", "label": "advanced", "required":
false, "type": "object", "javaType":
"org.apache.camel.component.weather.geolocation.GeoLocationProvider",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "A custom
org.apache.camel.componen [...]
+ "httpClient": { "index": 14, "kind": "parameter", "displayName": "Http
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType":
"org.apache.hc.client5.http.impl.classic.CloseableHttpClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "To use a custom
org.apache.hc.client5.http.impl.classic.Clos [...]
+ "cnt": { "index": 15, "kind": "parameter", "displayName": "Cnt", "group":
"filter", "label": "filter", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The number of results,
sent as the cnt query parameter, for example the number of cities or stations
to find around lat [...]
+ "ids": { "index": 16, "kind": "parameter", "displayName": "Ids", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The ID of a city, or of
a station with weatherApi Station, or a comma-separated list of city IDs to get
the current weathe [...]
+ "lat": { "index": 17, "kind": "parameter", "displayName": "Lat", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The latitude of the
location, used together with lon, and taking precedence over the zip, ids and
location options. For a [...]
+ "location": { "index": 18, "kind": "parameter", "displayName": "Location",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The city to get the
weather for, by name and optionally a country code, for example London,uk. If
empty or curre [...]
+ "lon": { "index": 19, "kind": "parameter", "displayName": "Lon", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The longitude of the
location, used together with lat. For a bounding box query (with rightLon and
topLat) it is the left [...]
+ "rightLon": { "index": 20, "kind": "parameter", "displayName": "Right
Lon", "group": "filter", "label": "filter", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The right longitude of a
bounding box query, which also needs lat, lon, topLat and zoom. The query gets
the wea [...]
+ "topLat": { "index": 21, "kind": "parameter", "displayName": "Top Lat",
"group": "filter", "label": "filter", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The top latitude of a
bounding box query, which also needs lat, lon, rightLon and zoom." },
+ "zip": { "index": 22, "kind": "parameter", "displayName": "Zip", "group":
"filter", "label": "filter", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The zip code and the
country code of the location, for example 94040,us. It is used when lat and lon
are not set, and take [...]
+ "zoom": { "index": 23, "kind": "parameter", "displayName": "Zoom",
"group": "filter", "label": "filter", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The map zoom level of a
bounding box query, which also needs lat, lon, rightLon and topLat." },
"backoffErrorThreshold": { "index": 24, "kind": "parameter",
"displayName": "Backoff Error Threshold", "group": "scheduler", "label":
"consumer,scheduler", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "autowired": false, "secret": false, "description": "The
number of subsequent error polls (failed due some error) that should happen
before the backoffMultipler should kick-in." },
"backoffIdleThreshold": { "index": 25, "kind": "parameter", "displayName":
"Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "The number of subsequent
idle polls that should happen before the backoffMultipler should kick-in." },
"backoffMultiplier": { "index": 26, "kind": "parameter", "displayName":
"Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "integer", "javaType": "int", "deprecated": false,
"autowired": false, "secret": false, "description": "To let the scheduled
polling consumer backoff if there has been a number of subsequent idles\/errors
in a row. The multiplier is then the number of polls that will be skipped
before the next actual attempt is h [...]
@@ -79,8 +79,8 @@
"startScheduler": { "index": 36, "kind": "parameter", "displayName":
"Start Scheduler", "group": "scheduler", "label": "consumer,scheduler",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": true,
"description": "Whether the scheduler should be auto started." },
"timeUnit": { "index": 37, "kind": "parameter", "displayName": "Time
Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false,
"type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [
"NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS",
"DAYS" ], "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and
delay options." },
"useFixedDelay": { "index": 38, "kind": "parameter", "displayName": "Use
Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in
JDK for details." },
- "appid": { "index": 39, "kind": "parameter", "displayName": "Appid",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "APPID ID used to
authenticate the user connected to the API Server" },
- "geolocationAccessKey": { "index": 40, "kind": "parameter", "displayName":
"Geolocation Access Key", "group": "security", "label": "security", "required":
true, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The geolocation service
now needs an accessKey to be used" },
- "geolocationRequestHostIP": { "index": 41, "kind": "parameter",
"displayName": "Geolocation Request Host IP", "group": "security", "label":
"security", "required": true, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The geolocation service
now needs to specify the IP associated to the acce [...]
+ "appid": { "index": 39, "kind": "parameter", "displayName": "Appid",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The API key of the
OpenWeatherMap account, sent as the APPID query parameter of every request." },
+ "geolocationAccessKey": { "index": 40, "kind": "parameter", "displayName":
"Geolocation Access Key", "group": "security", "label": "security", "required":
true, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The access key of the
ipstack API, which the default geoLocati [...]
+ "geolocationRequestHostIP": { "index": 41, "kind": "parameter",
"displayName": "Geolocation Request Host IP", "group": "security", "label":
"security", "required": true, "type": "string", "javaType": "java.lang.String",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.weather.WeatherConfiguration",
"configurationField": "configuration", "description": "The IP address that the
default geoLocationProvider looks up with the ipst [...]
}
}
diff --git a/components/camel-weather/src/main/docs/weather-component.adoc
b/components/camel-weather/src/main/docs/weather-component.adoc
index 4ba0df20908b..4c4ab5532955 100644
--- a/components/camel-weather/src/main/docs/weather-component.adoc
+++ b/components/camel-weather/src/main/docs/weather-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Weather
:shortname: weather
:artifactid: camel-weather
-:description: Poll the weather information from Open Weather Map.
+:description: Query the current weather and weather forecasts from
OpenWeatherMap.
:since: 2.12
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java
b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java
index 48ec632ef5e9..15aec947f045 100644
---
a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java
+++
b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java
@@ -38,48 +38,96 @@ public class WeatherConfiguration {
@UriPath(description = "The name value is not used.")
@Metadata(required = true)
private String name;
- @UriParam(label = "security", security = "secret")
+ @UriParam(description = "The API key of the OpenWeatherMap account, sent
as the APPID query parameter of every request.",
+ label = "security", security = "secret")
@Metadata(required = true)
private String appid;
- @UriParam
+ @UriParam(description = "The OpenWeatherMap API to call. Station queries
weather stations instead of cities, for ids, "
+ + "for lat and lon with cnt, and for a bounding
box. When period is set, Hourly gets the 3-hour "
+ + "forecast and any other value, or none, the
daily forecast; without period, Hourly and Daily get "
+ + "the current weather.")
private WeatherApi weatherApi;
- @UriParam(label = "filter")
+ @UriParam(description = "The city to get the weather for, by name and
optionally a country code, for example London,uk. "
+ + "If empty or current, the latitude and longitude
come from the geoLocationProvider. The lat and "
+ + "lon, zip and ids options take precedence over
this option, and the CamelWeatherLocation header "
+ + "replaces it for the producer.",
+ label = "filter")
private String location = "";
- @UriParam(label = "filter")
+ @UriParam(description = "The latitude of the location, used together with
lon, and taking precedence over the zip, ids "
+ + "and location options. For a bounding box query
(with rightLon and topLat) it is the bottom "
+ + "latitude. With cnt set, the query finds that
many cities, or stations with weatherApi Station, "
+ + "around the point.",
+ label = "filter")
private String lat;
- @UriParam(label = "filter")
+ @UriParam(description = "The longitude of the location, used together with
lat. For a bounding box query (with rightLon "
+ + "and topLat) it is the left longitude.",
+ label = "filter")
private String lon;
- @UriParam(label = "filter")
+ @UriParam(description = "The right longitude of a bounding box query,
which also needs lat, lon, topLat and zoom. The "
+ + "query gets the weather of the cities in the
box, or of the stations with weatherApi Station.",
+ label = "filter")
private String rightLon;
- @UriParam(label = "filter")
+ @UriParam(description = "The top latitude of a bounding box query, which
also needs lat, lon, rightLon and zoom.",
+ label = "filter")
private String topLat;
- @UriParam(label = "filter")
+ @UriParam(description = "The map zoom level of a bounding box query, which
also needs lat, lon, rightLon and topLat.",
+ label = "filter")
private Integer zoom;
- @UriParam
+ @UriParam(description = "The length of a forecast, sent as the cnt query
parameter: the number of days of the daily "
+ + "forecast, or the number of 3-hour steps with
weatherApi Hourly. Only the first number in the "
+ + "value is read, so 7 days is the same as 7, and
a value with no number, or 0, is ignored. "
+ + "If empty, the current weather is queried
instead of a forecast.")
private String period = "";
- @UriParam(defaultValue = "JSON")
+ @UriParam(description = "The format of the response from OpenWeatherMap:
JSON, XML or HTML. XML and HTML are sent as the "
+ + "mode query parameter.",
+ defaultValue = "JSON")
private WeatherMode mode = JSON;
- @UriParam
+ @UriParam(description = "The units of measurement in the response, for
example of temperature and wind speed, sent as "
+ + "the units query parameter. If not set,
OpenWeatherMap uses its standard units, with the "
+ + "temperature in Kelvin.")
private WeatherUnits units;
- @UriParam(defaultValue = "en")
+ @UriParam(description = "The language of the weather descriptions in the
response, sent as the lang query parameter.",
+ defaultValue = "en")
private WeatherLanguage language = en;
- @UriParam
+ @UriParam(description = "The name of the header to store the response in,
instead of the message body. The producer then "
+ + "leaves the body as it is, and the consumer
sends an exchange without a body.")
private String headerName;
- @UriParam(label = "filter")
+ @UriParam(description = "The zip code and the country code of the
location, for example 94040,us. It is used when lat "
+ + "and lon are not set, and takes precedence over
the ids and location options.",
+ label = "filter")
private String zip;
- @UriParam(label = "filter", javaType = "java.lang.String")
+ @UriParam(description = "The ID of a city, or of a station with weatherApi
Station, or a comma-separated list of city "
+ + "IDs to get the current weather of all of them
in one request. It is used when lat, lon and zip "
+ + "are not set, and takes precedence over the
location option.",
+ label = "filter", javaType = "java.lang.String")
private String ids;
- @UriParam(label = "filter")
+ @UriParam(description = "The number of results, sent as the cnt query
parameter, for example the number of cities or "
+ + "stations to find around lat and lon. The period
option takes precedence over this option.",
+ label = "filter")
private Integer cnt;
- @UriParam(label = "security", security = "secret")
+ @UriParam(description = "The access key of the ipstack API, which the
default geoLocationProvider uses. It is needed "
+ + "only when the location is looked up: location
is empty or current, and none of lat and lon, zip "
+ + "or ids is set.",
+ label = "security", security = "secret")
@Metadata(required = true)
private String geolocationAccessKey;
- @UriParam(label = "security")
+ @UriParam(description = "The IP address that the default
geoLocationProvider looks up with the ipstack API to find the "
+ + "latitude and longitude of the location. It is
needed only when the location is looked up, as "
+ + "for geolocationAccessKey.",
+ label = "security")
@Metadata(required = true)
private String geolocationRequestHostIP;
- @UriParam(label = "advanced")
+ @UriParam(description = "To use a custom
org.apache.hc.client5.http.impl.classic.CloseableHttpClient, for example one "
+ + "with an HTTP proxy, for the requests to
OpenWeatherMap and to the default geoLocationProvider. "
+ + "By default each endpoint creates its own
client. The endpoint closes the client when it stops, "
+ + "also a client that is set.",
+ label = "advanced")
private CloseableHttpClient httpClient = HttpClients.createDefault();
- @UriParam(label = "advanced")
+ @UriParam(description = "A custom
org.apache.camel.component.weather.geolocation.GeoLocationProvider for the
latitude "
+ + "and longitude of the location when location is
empty or current, and none of lat and lon, zip "
+ + "or ids is set. The default looks up
geolocationRequestHostIP with the ipstack API, and needs "
+ + "geolocationAccessKey.",
+ label = "advanced")
private GeoLocationProvider geoLocationProvider = new
FreeGeoIpGeoLocationProvider(this);
public WeatherConfiguration() {
@@ -90,10 +138,6 @@ public class WeatherConfiguration {
return period;
}
- /**
- * If null, the current weather will be returned, else use values of 5, 7,
14 days. Only the numeric value for the
- * forecast period is actually parsed, so spelling, capitalisation of the
time period is up to you (its ignored)
- */
public void setPeriod(String period) {
notNull(period, "period");
int result = 0;
@@ -119,9 +163,6 @@ public class WeatherConfiguration {
return mode;
}
- /**
- * The output format of the weather data.
- */
public void setMode(WeatherMode mode) {
this.mode = notNull(mode, "mode");
}
@@ -130,9 +171,6 @@ public class WeatherConfiguration {
return units;
}
- /**
- * The units for temperature measurement.
- */
public void setUnits(WeatherUnits units) {
this.units = notNull(units, "units");
}
@@ -141,13 +179,6 @@ public class WeatherConfiguration {
return location;
}
- /**
- * If null Camel will try and determine your current location using the
geolocation of your ip address, else specify
- * the city,country. For well known city names, Open Weather Map will
determine the best fit, but multiple results
- * may be returned. Hence specifying and country as well will return more
accurate data. If you specify "current" as
- * the location then the component will try to get the current latitude
and longitude and use that to get the
- * weather details. You can use lat and lon options instead of location.
- */
public void setLocation(String location) {
this.location = location;
}
@@ -156,10 +187,6 @@ public class WeatherConfiguration {
return headerName;
}
- /**
- * To store the weather result in this header instead of the message body.
This is useable if you want to keep
- * current message body as-is.
- */
public void setHeaderName(String headerName) {
this.headerName = headerName;
}
@@ -168,10 +195,6 @@ public class WeatherConfiguration {
return lat;
}
- /**
- * Latitude of location. You can use lat and lon options instead of
location. For boxed queries this is the bottom
- * latitude.
- */
public void setLat(String lat) {
this.lat = lat;
}
@@ -180,17 +203,10 @@ public class WeatherConfiguration {
return lon;
}
- /**
- * Longitude of location. You can use lat and lon options instead of
location. For boxed queries this is the left
- * longtitude.
- */
public void setLon(String lon) {
this.lon = lon;
}
- /**
- * APPID ID used to authenticate the user connected to the API Server
- */
public void setAppid(String appid) {
this.appid = appid;
}
@@ -203,9 +219,6 @@ public class WeatherConfiguration {
return language;
}
- /**
- * Language of the response.
- */
public void setLanguage(WeatherLanguage language) {
this.language = language;
}
@@ -214,9 +227,6 @@ public class WeatherConfiguration {
return rightLon;
}
- /**
- * For boxed queries this is the right longtitude. Needs to be used in
combination with topLat and zoom.
- */
public void setRightLon(String rightLon) {
this.rightLon = rightLon;
}
@@ -225,9 +235,6 @@ public class WeatherConfiguration {
return topLat;
}
- /**
- * For boxed queries this is the top latitude. Needs to be used in
combination with rightLon and zoom.
- */
public void setTopLat(String topLat) {
this.topLat = topLat;
}
@@ -236,9 +243,6 @@ public class WeatherConfiguration {
return zoom;
}
- /**
- * For boxed queries this is the zoom. Needs to be used in combination
with rightLon and topLat.
- */
public void setZoom(Integer zoom) {
this.zoom = zoom;
}
@@ -247,9 +251,6 @@ public class WeatherConfiguration {
return zip;
}
- /**
- * Zip-code, e.g. 94040,us
- */
public void setZip(String zip) {
this.zip = zip;
}
@@ -266,9 +267,6 @@ public class WeatherConfiguration {
}
}
- /**
- * List of id's of city/stations. You can separate multiple ids by comma.
- */
public void setIds(String ids) {
this.ids = ids;
}
@@ -277,9 +275,6 @@ public class WeatherConfiguration {
return cnt;
}
- /**
- * Number of results to be found
- */
public void setCnt(Integer cnt) {
this.cnt = cnt;
}
@@ -288,9 +283,6 @@ public class WeatherConfiguration {
return weatherApi;
}
- /**
- * The API to use (current, forecast/3 hour, forecast daily, station)
- */
public void setWeatherApi(WeatherApi weatherApi) {
this.weatherApi = weatherApi;
}
@@ -299,9 +291,6 @@ public class WeatherConfiguration {
return geolocationAccessKey;
}
- /**
- * The geolocation service now needs an accessKey to be used
- */
public void setGeolocationAccessKey(String geolocationAccessKey) {
this.geolocationAccessKey = geolocationAccessKey;
}
@@ -310,9 +299,6 @@ public class WeatherConfiguration {
return geolocationRequestHostIP;
}
- /**
- * The geolocation service now needs to specify the IP associated to the
accessKey you're using
- */
public void setGeolocationRequestHostIP(String geolocationRequestHostIP) {
this.geolocationRequestHostIP = geolocationRequestHostIP;
}
@@ -321,9 +307,6 @@ public class WeatherConfiguration {
return httpClient;
}
- /**
- * To use an existing configured http client (for example with http proxy)
- */
public void setHttpClient(CloseableHttpClient httpClient) {
this.httpClient = httpClient;
}
@@ -332,11 +315,6 @@ public class WeatherConfiguration {
return geoLocationProvider;
}
- /**
- * A custom geolocation provider to determine the longitude and latitude
to use when no location information is set.
- *
- * The default implementation uses the ipstack API and requires
geolocationAccessKey and geolocationRequestHostIP
- */
public void setGeoLocationProvider(GeoLocationProvider
geoLocationProvider) {
this.geoLocationProvider = geoLocationProvider;
}
diff --git
a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConstants.java
b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConstants.java
index bd3b7b9f00c6..8f93af48b372 100644
---
a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConstants.java
+++
b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConstants.java
@@ -23,11 +23,14 @@ import org.apache.camel.spi.Metadata;
*/
public final class WeatherConstants {
- @Metadata(label = "producer", description = "Used by the producer to
override the endpoint location and use the\n" +
- "location from this header
instead.",
+ @Metadata(label = "producer", description = "The location to query, in the
format of the location option, which this header"
+ + " replaces for the producer.
The producer ignores it when lat and lon, zip or"
+ + " ids are set, and current
or an empty value looks up the location.",
javaType = "String")
public static final String WEATHER_LOCATION = "CamelWeatherLocation";
- @Metadata(description = "The original query URL sent to the Open Weather
Map site", javaType = "String")
+ @Metadata(description = "The URL of the request that the consumer or the
producer sent to OpenWeatherMap,"
+ + " with its query parameters.",
+ javaType = "String")
public static final String WEATHER_QUERY = "CamelWeatherQuery";
private WeatherConstants() {
diff --git
a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherEndpoint.java
b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherEndpoint.java
index b6a690255c02..874f0c0cad6a 100644
---
a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherEndpoint.java
+++
b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherEndpoint.java
@@ -30,7 +30,7 @@ import org.apache.camel.support.DefaultPollingEndpoint;
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
/**
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*/
@UriEndpoint(firstVersion = "2.12.0", scheme = "weather", title = "Weather",
syntax = "weather:name",
category = { Category.API }, headersClass =
WeatherConstants.class)
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index a3a490cad21a..b37b3ee68717 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -5432,7 +5432,7 @@ public interface ComponentsBuilderFactory {
}
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WeatherComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WeatherComponentBuilderFactory.java
index f33b7a25126f..a20364297033 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WeatherComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/WeatherComponentBuilderFactory.java
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.weather.WeatherComponent;
/**
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +33,7 @@ public interface WeatherComponentBuilderFactory {
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 819a08c5a38d..14dda84367a2 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -4302,7 +4302,7 @@ public class EndpointHeaderBuilders {
}
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 2f55c07d3f9a..69028802e135 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -18397,7 +18397,7 @@ public class StaticEndpointBuilders {
}
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
@@ -18416,7 +18416,7 @@ public class StaticEndpointBuilders {
}
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeatherEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeatherEndpointBuilderFactory.java
index 56b9a1a21bed..178891808efb 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeatherEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeatherEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -44,8 +44,9 @@ public interface WeatherEndpointBuilderFactory {
return (AdvancedWeatherEndpointConsumerBuilder) this;
}
/**
- * To store the weather result in this header instead of the message
- * body. This is useable if you want to keep current message body
as-is.
+ * The name of the header to store the response in, instead of the
+ * message body. The producer then leaves the body as it is, and the
+ * consumer sends an exchange without a body.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -59,7 +60,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Language of the response.
+ * The language of the weather descriptions in the response, sent as
the
+ * lang query parameter.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherLanguage</code>
type.
@@ -75,7 +77,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Language of the response.
+ * The language of the weather descriptions in the response, sent as
the
+ * lang query parameter.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherLanguage</code>
type.
@@ -91,7 +94,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The output format of the weather data.
+ * The format of the response from OpenWeatherMap: JSON, XML or HTML.
+ * XML and HTML are sent as the mode query parameter.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherMode</code> type.
@@ -107,7 +111,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The output format of the weather data.
+ * The format of the response from OpenWeatherMap: JSON, XML or HTML.
+ * XML and HTML are sent as the mode query parameter.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherMode</code> type.
@@ -123,10 +128,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * If null, the current weather will be returned, else use values of 5,
- * 7, 14 days. Only the numeric value for the forecast period is
- * actually parsed, so spelling, capitalisation of the time period is
up
- * to you (its ignored).
+ * The length of a forecast, sent as the cnt query parameter: the
number
+ * of days of the daily forecast, or the number of 3-hour steps with
+ * weatherApi Hourly. Only the first number in the value is read, so 7
+ * days is the same as 7, and a value with no number, or 0, is ignored.
+ * If empty, the current weather is queried instead of a forecast.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -140,7 +146,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The units for temperature measurement.
+ * The units of measurement in the response, for example of temperature
+ * and wind speed, sent as the units query parameter. If not set,
+ * OpenWeatherMap uses its standard units, with the temperature in
+ * Kelvin.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherUnits</code> type.
@@ -155,7 +164,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The units for temperature measurement.
+ * The units of measurement in the response, for example of temperature
+ * and wind speed, sent as the units query parameter. If not set,
+ * OpenWeatherMap uses its standard units, with the temperature in
+ * Kelvin.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherUnits</code> type.
@@ -170,7 +182,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The API to use (current, forecast/3 hour, forecast daily, station).
+ * The OpenWeatherMap API to call. Station queries weather stations
+ * instead of cities, for ids, for lat and lon with cnt, and for a
+ * bounding box. When period is set, Hourly gets the 3-hour forecast
and
+ * any other value, or none, the daily forecast; without period, Hourly
+ * and Daily get the current weather.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherApi</code> type.
@@ -185,7 +201,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The API to use (current, forecast/3 hour, forecast daily, station).
+ * The OpenWeatherMap API to call. Station queries weather stations
+ * instead of cities, for ids, for lat and lon with cnt, and for a
+ * bounding box. When period is set, Hourly gets the 3-hour forecast
and
+ * any other value, or none, the daily forecast; without period, Hourly
+ * and Daily get the current weather.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherApi</code> type.
@@ -232,7 +252,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Number of results to be found.
+ * The number of results, sent as the cnt query parameter, for example
+ * the number of cities or stations to find around lat and lon. The
+ * period option takes precedence over this option.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -246,7 +268,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Number of results to be found.
+ * The number of results, sent as the cnt query parameter, for example
+ * the number of cities or stations to find around lat and lon. The
+ * period option takes precedence over this option.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -261,8 +285,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * List of id's of city/stations. You can separate multiple ids by
- * comma.
+ * The ID of a city, or of a station with weatherApi Station, or a
+ * comma-separated list of city IDs to get the current weather of all
of
+ * them in one request. It is used when lat, lon and zip are not set,
+ * and takes precedence over the location option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -276,8 +302,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Latitude of location. You can use lat and lon options instead of
- * location. For boxed queries this is the bottom latitude.
+ * The latitude of the location, used together with lon, and taking
+ * precedence over the zip, ids and location options. For a bounding
box
+ * query (with rightLon and topLat) it is the bottom latitude. With cnt
+ * set, the query finds that many cities, or stations with weatherApi
+ * Station, around the point.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -291,14 +320,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * If null Camel will try and determine your current location using the
- * geolocation of your ip address, else specify the city,country. For
- * well known city names, Open Weather Map will determine the best fit,
- * but multiple results may be returned. Hence specifying and country
as
- * well will return more accurate data. If you specify current as the
- * location then the component will try to get the current latitude and
- * longitude and use that to get the weather details. You can use lat
- * and lon options instead of location.
+ * The city to get the weather for, by name and optionally a country
+ * code, for example London,uk. If empty or current, the latitude and
+ * longitude come from the geoLocationProvider. The lat and lon, zip
and
+ * ids options take precedence over this option, and the
+ * CamelWeatherLocation header replaces it for the producer.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -312,8 +338,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Longitude of location. You can use lat and lon options instead of
- * location. For boxed queries this is the left longtitude.
+ * The longitude of the location, used together with lat. For a
bounding
+ * box query (with rightLon and topLat) it is the left longitude.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -327,8 +353,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the right longtitude. Needs to be used in
- * combination with topLat and zoom.
+ * The right longitude of a bounding box query, which also needs lat,
+ * lon, topLat and zoom. The query gets the weather of the cities in
the
+ * box, or of the stations with weatherApi Station.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -342,8 +369,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the top latitude. Needs to be used in
- * combination with rightLon and zoom.
+ * The top latitude of a bounding box query, which also needs lat, lon,
+ * rightLon and zoom.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -357,7 +384,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Zip-code, e.g. 94040,us.
+ * The zip code and the country code of the location, for example
+ * 94040,us. It is used when lat and lon are not set, and takes
+ * precedence over the ids and location options.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -371,8 +400,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the zoom. Needs to be used in combination
- * with rightLon and topLat.
+ * The map zoom level of a bounding box query, which also needs lat,
+ * lon, rightLon and topLat.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -386,8 +415,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the zoom. Needs to be used in combination
- * with rightLon and topLat.
+ * The map zoom level of a bounding box query, which also needs lat,
+ * lon, rightLon and topLat.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -901,7 +930,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * APPID ID used to authenticate the user connected to the API Server.
+ * The API key of the OpenWeatherMap account, sent as the APPID query
+ * parameter of every request.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -916,7 +946,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The geolocation service now needs an accessKey to be used.
+ * The access key of the ipstack API, which the default
+ * geoLocationProvider uses. It is needed only when the location is
+ * looked up: location is empty or current, and none of lat and lon,
zip
+ * or ids is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -931,8 +964,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The geolocation service now needs to specify the IP associated to
the
- * accessKey you're using.
+ * The IP address that the default geoLocationProvider looks up with
the
+ * ipstack API to find the latitude and longitude of the location. It
is
+ * needed only when the location is looked up, as for
+ * geolocationAccessKey.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1111,10 +1146,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * A custom geolocation provider to determine the longitude and
latitude
- * to use when no location information is set. The default
- * implementation uses the ipstack API and requires
geolocationAccessKey
- * and geolocationRequestHostIP.
+ * A custom
+ * org.apache.camel.component.weather.geolocation.GeoLocationProvider
+ * for the latitude and longitude of the location when location is
empty
+ * or current, and none of lat and lon, zip or ids is set. The default
+ * looks up geolocationRequestHostIP with the ipstack API, and needs
+ * geolocationAccessKey.
*
* The option is a:
*
<code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code>
type.
@@ -1129,10 +1166,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * A custom geolocation provider to determine the longitude and
latitude
- * to use when no location information is set. The default
- * implementation uses the ipstack API and requires
geolocationAccessKey
- * and geolocationRequestHostIP.
+ * A custom
+ * org.apache.camel.component.weather.geolocation.GeoLocationProvider
+ * for the latitude and longitude of the location when location is
empty
+ * or current, and none of lat and lon, zip or ids is set. The default
+ * looks up geolocationRequestHostIP with the ipstack API, and needs
+ * geolocationAccessKey.
*
* The option will be converted to a
*
<code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code>
type.
@@ -1147,8 +1186,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * To use an existing configured http client (for example with http
- * proxy).
+ * To use a custom
+ * org.apache.hc.client5.http.impl.classic.CloseableHttpClient, for
+ * example one with an HTTP proxy, for the requests to OpenWeatherMap
+ * and to the default geoLocationProvider. By default each endpoint
+ * creates its own client. The endpoint closes the client when it
stops,
+ * also a client that is set.
*
* The option is a:
*
<code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type.
@@ -1163,8 +1206,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * To use an existing configured http client (for example with http
- * proxy).
+ * To use a custom
+ * org.apache.hc.client5.http.impl.classic.CloseableHttpClient, for
+ * example one with an HTTP proxy, for the requests to OpenWeatherMap
+ * and to the default geoLocationProvider. By default each endpoint
+ * creates its own client. The endpoint closes the client when it
stops,
+ * also a client that is set.
*
* The option will be converted to a
*
<code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type.
@@ -1191,8 +1238,9 @@ public interface WeatherEndpointBuilderFactory {
}
/**
- * To store the weather result in this header instead of the message
- * body. This is useable if you want to keep current message body
as-is.
+ * The name of the header to store the response in, instead of the
+ * message body. The producer then leaves the body as it is, and the
+ * consumer sends an exchange without a body.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1206,7 +1254,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Language of the response.
+ * The language of the weather descriptions in the response, sent as
the
+ * lang query parameter.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherLanguage</code>
type.
@@ -1222,7 +1271,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Language of the response.
+ * The language of the weather descriptions in the response, sent as
the
+ * lang query parameter.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherLanguage</code>
type.
@@ -1238,7 +1288,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The output format of the weather data.
+ * The format of the response from OpenWeatherMap: JSON, XML or HTML.
+ * XML and HTML are sent as the mode query parameter.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherMode</code> type.
@@ -1254,7 +1305,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The output format of the weather data.
+ * The format of the response from OpenWeatherMap: JSON, XML or HTML.
+ * XML and HTML are sent as the mode query parameter.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherMode</code> type.
@@ -1270,10 +1322,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * If null, the current weather will be returned, else use values of 5,
- * 7, 14 days. Only the numeric value for the forecast period is
- * actually parsed, so spelling, capitalisation of the time period is
up
- * to you (its ignored).
+ * The length of a forecast, sent as the cnt query parameter: the
number
+ * of days of the daily forecast, or the number of 3-hour steps with
+ * weatherApi Hourly. Only the first number in the value is read, so 7
+ * days is the same as 7, and a value with no number, or 0, is ignored.
+ * If empty, the current weather is queried instead of a forecast.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1287,7 +1340,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The units for temperature measurement.
+ * The units of measurement in the response, for example of temperature
+ * and wind speed, sent as the units query parameter. If not set,
+ * OpenWeatherMap uses its standard units, with the temperature in
+ * Kelvin.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherUnits</code> type.
@@ -1302,7 +1358,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The units for temperature measurement.
+ * The units of measurement in the response, for example of temperature
+ * and wind speed, sent as the units query parameter. If not set,
+ * OpenWeatherMap uses its standard units, with the temperature in
+ * Kelvin.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherUnits</code> type.
@@ -1317,7 +1376,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The API to use (current, forecast/3 hour, forecast daily, station).
+ * The OpenWeatherMap API to call. Station queries weather stations
+ * instead of cities, for ids, for lat and lon with cnt, and for a
+ * bounding box. When period is set, Hourly gets the 3-hour forecast
and
+ * any other value, or none, the daily forecast; without period, Hourly
+ * and Daily get the current weather.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherApi</code> type.
@@ -1332,7 +1395,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The API to use (current, forecast/3 hour, forecast daily, station).
+ * The OpenWeatherMap API to call. Station queries weather stations
+ * instead of cities, for ids, for lat and lon with cnt, and for a
+ * bounding box. When period is set, Hourly gets the 3-hour forecast
and
+ * any other value, or none, the daily forecast; without period, Hourly
+ * and Daily get the current weather.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherApi</code> type.
@@ -1347,7 +1414,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Number of results to be found.
+ * The number of results, sent as the cnt query parameter, for example
+ * the number of cities or stations to find around lat and lon. The
+ * period option takes precedence over this option.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -1361,7 +1430,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Number of results to be found.
+ * The number of results, sent as the cnt query parameter, for example
+ * the number of cities or stations to find around lat and lon. The
+ * period option takes precedence over this option.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -1376,8 +1447,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * List of id's of city/stations. You can separate multiple ids by
- * comma.
+ * The ID of a city, or of a station with weatherApi Station, or a
+ * comma-separated list of city IDs to get the current weather of all
of
+ * them in one request. It is used when lat, lon and zip are not set,
+ * and takes precedence over the location option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1391,8 +1464,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Latitude of location. You can use lat and lon options instead of
- * location. For boxed queries this is the bottom latitude.
+ * The latitude of the location, used together with lon, and taking
+ * precedence over the zip, ids and location options. For a bounding
box
+ * query (with rightLon and topLat) it is the bottom latitude. With cnt
+ * set, the query finds that many cities, or stations with weatherApi
+ * Station, around the point.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1406,14 +1482,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * If null Camel will try and determine your current location using the
- * geolocation of your ip address, else specify the city,country. For
- * well known city names, Open Weather Map will determine the best fit,
- * but multiple results may be returned. Hence specifying and country
as
- * well will return more accurate data. If you specify current as the
- * location then the component will try to get the current latitude and
- * longitude and use that to get the weather details. You can use lat
- * and lon options instead of location.
+ * The city to get the weather for, by name and optionally a country
+ * code, for example London,uk. If empty or current, the latitude and
+ * longitude come from the geoLocationProvider. The lat and lon, zip
and
+ * ids options take precedence over this option, and the
+ * CamelWeatherLocation header replaces it for the producer.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1427,8 +1500,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Longitude of location. You can use lat and lon options instead of
- * location. For boxed queries this is the left longtitude.
+ * The longitude of the location, used together with lat. For a
bounding
+ * box query (with rightLon and topLat) it is the left longitude.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1442,8 +1515,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the right longtitude. Needs to be used in
- * combination with topLat and zoom.
+ * The right longitude of a bounding box query, which also needs lat,
+ * lon, topLat and zoom. The query gets the weather of the cities in
the
+ * box, or of the stations with weatherApi Station.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1457,8 +1531,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the top latitude. Needs to be used in
- * combination with rightLon and zoom.
+ * The top latitude of a bounding box query, which also needs lat, lon,
+ * rightLon and zoom.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1472,7 +1546,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Zip-code, e.g. 94040,us.
+ * The zip code and the country code of the location, for example
+ * 94040,us. It is used when lat and lon are not set, and takes
+ * precedence over the ids and location options.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1486,8 +1562,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the zoom. Needs to be used in combination
- * with rightLon and topLat.
+ * The map zoom level of a bounding box query, which also needs lat,
+ * lon, rightLon and topLat.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -1501,8 +1577,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the zoom. Needs to be used in combination
- * with rightLon and topLat.
+ * The map zoom level of a bounding box query, which also needs lat,
+ * lon, rightLon and topLat.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -1517,7 +1593,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * APPID ID used to authenticate the user connected to the API Server.
+ * The API key of the OpenWeatherMap account, sent as the APPID query
+ * parameter of every request.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1532,7 +1609,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The geolocation service now needs an accessKey to be used.
+ * The access key of the ipstack API, which the default
+ * geoLocationProvider uses. It is needed only when the location is
+ * looked up: location is empty or current, and none of lat and lon,
zip
+ * or ids is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1547,8 +1627,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The geolocation service now needs to specify the IP associated to
the
- * accessKey you're using.
+ * The IP address that the default geoLocationProvider looks up with
the
+ * ipstack API to find the latitude and longitude of the location. It
is
+ * needed only when the location is looked up, as for
+ * geolocationAccessKey.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1619,10 +1701,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * A custom geolocation provider to determine the longitude and
latitude
- * to use when no location information is set. The default
- * implementation uses the ipstack API and requires
geolocationAccessKey
- * and geolocationRequestHostIP.
+ * A custom
+ * org.apache.camel.component.weather.geolocation.GeoLocationProvider
+ * for the latitude and longitude of the location when location is
empty
+ * or current, and none of lat and lon, zip or ids is set. The default
+ * looks up geolocationRequestHostIP with the ipstack API, and needs
+ * geolocationAccessKey.
*
* The option is a:
*
<code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code>
type.
@@ -1637,10 +1721,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * A custom geolocation provider to determine the longitude and
latitude
- * to use when no location information is set. The default
- * implementation uses the ipstack API and requires
geolocationAccessKey
- * and geolocationRequestHostIP.
+ * A custom
+ * org.apache.camel.component.weather.geolocation.GeoLocationProvider
+ * for the latitude and longitude of the location when location is
empty
+ * or current, and none of lat and lon, zip or ids is set. The default
+ * looks up geolocationRequestHostIP with the ipstack API, and needs
+ * geolocationAccessKey.
*
* The option will be converted to a
*
<code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code>
type.
@@ -1655,8 +1741,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * To use an existing configured http client (for example with http
- * proxy).
+ * To use a custom
+ * org.apache.hc.client5.http.impl.classic.CloseableHttpClient, for
+ * example one with an HTTP proxy, for the requests to OpenWeatherMap
+ * and to the default geoLocationProvider. By default each endpoint
+ * creates its own client. The endpoint closes the client when it
stops,
+ * also a client that is set.
*
* The option is a:
*
<code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type.
@@ -1671,8 +1761,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * To use an existing configured http client (for example with http
- * proxy).
+ * To use a custom
+ * org.apache.hc.client5.http.impl.classic.CloseableHttpClient, for
+ * example one with an HTTP proxy, for the requests to OpenWeatherMap
+ * and to the default geoLocationProvider. By default each endpoint
+ * creates its own client. The endpoint closes the client when it
stops,
+ * also a client that is set.
*
* The option will be converted to a
*
<code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type.
@@ -1700,8 +1794,9 @@ public interface WeatherEndpointBuilderFactory {
}
/**
- * To store the weather result in this header instead of the message
- * body. This is useable if you want to keep current message body
as-is.
+ * The name of the header to store the response in, instead of the
+ * message body. The producer then leaves the body as it is, and the
+ * consumer sends an exchange without a body.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1715,7 +1810,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Language of the response.
+ * The language of the weather descriptions in the response, sent as
the
+ * lang query parameter.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherLanguage</code>
type.
@@ -1731,7 +1827,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Language of the response.
+ * The language of the weather descriptions in the response, sent as
the
+ * lang query parameter.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherLanguage</code>
type.
@@ -1747,7 +1844,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The output format of the weather data.
+ * The format of the response from OpenWeatherMap: JSON, XML or HTML.
+ * XML and HTML are sent as the mode query parameter.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherMode</code> type.
@@ -1763,7 +1861,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The output format of the weather data.
+ * The format of the response from OpenWeatherMap: JSON, XML or HTML.
+ * XML and HTML are sent as the mode query parameter.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherMode</code> type.
@@ -1779,10 +1878,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * If null, the current weather will be returned, else use values of 5,
- * 7, 14 days. Only the numeric value for the forecast period is
- * actually parsed, so spelling, capitalisation of the time period is
up
- * to you (its ignored).
+ * The length of a forecast, sent as the cnt query parameter: the
number
+ * of days of the daily forecast, or the number of 3-hour steps with
+ * weatherApi Hourly. Only the first number in the value is read, so 7
+ * days is the same as 7, and a value with no number, or 0, is ignored.
+ * If empty, the current weather is queried instead of a forecast.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1796,7 +1896,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The units for temperature measurement.
+ * The units of measurement in the response, for example of temperature
+ * and wind speed, sent as the units query parameter. If not set,
+ * OpenWeatherMap uses its standard units, with the temperature in
+ * Kelvin.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherUnits</code> type.
@@ -1811,7 +1914,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The units for temperature measurement.
+ * The units of measurement in the response, for example of temperature
+ * and wind speed, sent as the units query parameter. If not set,
+ * OpenWeatherMap uses its standard units, with the temperature in
+ * Kelvin.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherUnits</code> type.
@@ -1826,7 +1932,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The API to use (current, forecast/3 hour, forecast daily, station).
+ * The OpenWeatherMap API to call. Station queries weather stations
+ * instead of cities, for ids, for lat and lon with cnt, and for a
+ * bounding box. When period is set, Hourly gets the 3-hour forecast
and
+ * any other value, or none, the daily forecast; without period, Hourly
+ * and Daily get the current weather.
*
* The option is a:
* <code>org.apache.camel.component.weather.WeatherApi</code> type.
@@ -1841,7 +1951,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The API to use (current, forecast/3 hour, forecast daily, station).
+ * The OpenWeatherMap API to call. Station queries weather stations
+ * instead of cities, for ids, for lat and lon with cnt, and for a
+ * bounding box. When period is set, Hourly gets the 3-hour forecast
and
+ * any other value, or none, the daily forecast; without period, Hourly
+ * and Daily get the current weather.
*
* The option will be converted to a
* <code>org.apache.camel.component.weather.WeatherApi</code> type.
@@ -1856,7 +1970,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Number of results to be found.
+ * The number of results, sent as the cnt query parameter, for example
+ * the number of cities or stations to find around lat and lon. The
+ * period option takes precedence over this option.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -1870,7 +1986,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Number of results to be found.
+ * The number of results, sent as the cnt query parameter, for example
+ * the number of cities or stations to find around lat and lon. The
+ * period option takes precedence over this option.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -1885,8 +2003,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * List of id's of city/stations. You can separate multiple ids by
- * comma.
+ * The ID of a city, or of a station with weatherApi Station, or a
+ * comma-separated list of city IDs to get the current weather of all
of
+ * them in one request. It is used when lat, lon and zip are not set,
+ * and takes precedence over the location option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1900,8 +2020,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Latitude of location. You can use lat and lon options instead of
- * location. For boxed queries this is the bottom latitude.
+ * The latitude of the location, used together with lon, and taking
+ * precedence over the zip, ids and location options. For a bounding
box
+ * query (with rightLon and topLat) it is the bottom latitude. With cnt
+ * set, the query finds that many cities, or stations with weatherApi
+ * Station, around the point.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1915,14 +2038,11 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * If null Camel will try and determine your current location using the
- * geolocation of your ip address, else specify the city,country. For
- * well known city names, Open Weather Map will determine the best fit,
- * but multiple results may be returned. Hence specifying and country
as
- * well will return more accurate data. If you specify current as the
- * location then the component will try to get the current latitude and
- * longitude and use that to get the weather details. You can use lat
- * and lon options instead of location.
+ * The city to get the weather for, by name and optionally a country
+ * code, for example London,uk. If empty or current, the latitude and
+ * longitude come from the geoLocationProvider. The lat and lon, zip
and
+ * ids options take precedence over this option, and the
+ * CamelWeatherLocation header replaces it for the producer.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1936,8 +2056,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Longitude of location. You can use lat and lon options instead of
- * location. For boxed queries this is the left longtitude.
+ * The longitude of the location, used together with lat. For a
bounding
+ * box query (with rightLon and topLat) it is the left longitude.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1951,8 +2071,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the right longtitude. Needs to be used in
- * combination with topLat and zoom.
+ * The right longitude of a bounding box query, which also needs lat,
+ * lon, topLat and zoom. The query gets the weather of the cities in
the
+ * box, or of the stations with weatherApi Station.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1966,8 +2087,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the top latitude. Needs to be used in
- * combination with rightLon and zoom.
+ * The top latitude of a bounding box query, which also needs lat, lon,
+ * rightLon and zoom.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1981,7 +2102,9 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * Zip-code, e.g. 94040,us.
+ * The zip code and the country code of the location, for example
+ * 94040,us. It is used when lat and lon are not set, and takes
+ * precedence over the ids and location options.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -1995,8 +2118,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the zoom. Needs to be used in combination
- * with rightLon and topLat.
+ * The map zoom level of a bounding box query, which also needs lat,
+ * lon, rightLon and topLat.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -2010,8 +2133,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * For boxed queries this is the zoom. Needs to be used in combination
- * with rightLon and topLat.
+ * The map zoom level of a bounding box query, which also needs lat,
+ * lon, rightLon and topLat.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -2026,7 +2149,8 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * APPID ID used to authenticate the user connected to the API Server.
+ * The API key of the OpenWeatherMap account, sent as the APPID query
+ * parameter of every request.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -2041,7 +2165,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The geolocation service now needs an accessKey to be used.
+ * The access key of the ipstack API, which the default
+ * geoLocationProvider uses. It is needed only when the location is
+ * looked up: location is empty or current, and none of lat and lon,
zip
+ * or ids is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -2056,8 +2183,10 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * The geolocation service now needs to specify the IP associated to
the
- * accessKey you're using.
+ * The IP address that the default geoLocationProvider looks up with
the
+ * ipstack API to find the latitude and longitude of the location. It
is
+ * needed only when the location is looked up, as for
+ * geolocationAccessKey.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -2085,10 +2214,12 @@ public interface WeatherEndpointBuilderFactory {
}
/**
- * A custom geolocation provider to determine the longitude and
latitude
- * to use when no location information is set. The default
- * implementation uses the ipstack API and requires
geolocationAccessKey
- * and geolocationRequestHostIP.
+ * A custom
+ * org.apache.camel.component.weather.geolocation.GeoLocationProvider
+ * for the latitude and longitude of the location when location is
empty
+ * or current, and none of lat and lon, zip or ids is set. The default
+ * looks up geolocationRequestHostIP with the ipstack API, and needs
+ * geolocationAccessKey.
*
* The option is a:
*
<code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code>
type.
@@ -2103,10 +2234,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * A custom geolocation provider to determine the longitude and
latitude
- * to use when no location information is set. The default
- * implementation uses the ipstack API and requires
geolocationAccessKey
- * and geolocationRequestHostIP.
+ * A custom
+ * org.apache.camel.component.weather.geolocation.GeoLocationProvider
+ * for the latitude and longitude of the location when location is
empty
+ * or current, and none of lat and lon, zip or ids is set. The default
+ * looks up geolocationRequestHostIP with the ipstack API, and needs
+ * geolocationAccessKey.
*
* The option will be converted to a
*
<code>org.apache.camel.component.weather.geolocation.GeoLocationProvider</code>
type.
@@ -2121,8 +2254,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * To use an existing configured http client (for example with http
- * proxy).
+ * To use a custom
+ * org.apache.hc.client5.http.impl.classic.CloseableHttpClient, for
+ * example one with an HTTP proxy, for the requests to OpenWeatherMap
+ * and to the default geoLocationProvider. By default each endpoint
+ * creates its own client. The endpoint closes the client when it
stops,
+ * also a client that is set.
*
* The option is a:
*
<code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type.
@@ -2137,8 +2274,12 @@ public interface WeatherEndpointBuilderFactory {
return this;
}
/**
- * To use an existing configured http client (for example with http
- * proxy).
+ * To use a custom
+ * org.apache.hc.client5.http.impl.classic.CloseableHttpClient, for
+ * example one with an HTTP proxy, for the requests to OpenWeatherMap
+ * and to the default geoLocationProvider. By default each endpoint
+ * creates its own client. The endpoint closes the client when it
stops,
+ * also a client that is set.
*
* The option will be converted to a
*
<code>org.apache.hc.client5.http.impl.classic.CloseableHttpClient</code> type.
@@ -2157,7 +2298,7 @@ public interface WeatherEndpointBuilderFactory {
public interface WeatherBuilders {
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
@@ -2170,7 +2311,7 @@ public interface WeatherEndpointBuilderFactory {
}
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
@@ -2189,7 +2330,7 @@ public interface WeatherEndpointBuilderFactory {
}
/**
* Weather (camel-weather)
- * Poll the weather information from Open Weather Map.
+ * Query the current weather and weather forecasts from OpenWeatherMap.
*
* Category: api
* Since: 2.12
@@ -2221,8 +2362,10 @@ public interface WeatherEndpointBuilderFactory {
public static final WeatherHeaderNameBuilder INSTANCE = new
WeatherHeaderNameBuilder();
/**
- * Used by the producer to override the endpoint location and use the
- * location from this header instead.
+ * The location to query, in the format of the location option, which
+ * this header replaces for the producer. The producer ignores it when
+ * lat and lon, zip or ids are set, and current or an empty value looks
+ * up the location.
*
* The option is a: {@code String} type.
*
@@ -2234,7 +2377,8 @@ public interface WeatherEndpointBuilderFactory {
return "CamelWeatherLocation";
}
/**
- * The original query URL sent to the Open Weather Map site.
+ * The URL of the request that the consumer or the producer sent to
+ * OpenWeatherMap, with its query parameters.
*
* The option is a: {@code String} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index ef9d742feeef..92555982d333 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -382,7 +382,7 @@ or removes its row.
| camel-vertx-mqtt | vertx-mqtt | |
| camel-vertx-websocket | vertx-websocket | |
| camel-wasm | wasm | |
-| camel-weather | weather | |
+| camel-weather | weather | yes |
| camel-weaviate | weaviate | |
| camel-web3j | web3j | |
| camel-webhook | webhook | |