You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/07/17 14:35:25 UTC
[camel] 03/05: CAMEL-12658 - Updated docs and metadata for the new
options
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0fe37bac2e36250ab428f17af4a050c22dbc10c8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 17 16:30:28 2018 +0200
CAMEL-12658 - Updated docs and metadata for the new options
---
components/camel-weather/src/main/docs/weather-component.adoc | 5 +++--
.../org/apache/camel/component/weather/WeatherConfiguration.java | 4 +++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/components/camel-weather/src/main/docs/weather-component.adoc b/components/camel-weather/src/main/docs/weather-component.adoc
index d25f407..e7622e9 100644
--- a/components/camel-weather/src/main/docs/weather-component.adoc
+++ b/components/camel-weather/src/main/docs/weather-component.adoc
@@ -76,7 +76,7 @@ with the following path and query parameters:
|===
-==== Query Parameters (44 parameters):
+==== Query Parameters (45 parameters):
[width="100%",cols="2,5,^1,2",options="header"]
@@ -125,7 +125,8 @@ with the following path and query parameters:
| *proxyAuthUsername* (proxy) | Username for proxy authentication | | String
| *proxyHost* (proxy) | The proxy host name | | String
| *proxyPort* (proxy) | The proxy port number | | Integer
-| *geolocationAccessKey* (security) | The geolocation service now needs an accessKey to be used | | String
+| *geolocationAccessKey* (security) | *Required* The geolocation service now needs an accessKey to be used | | String
+| *geolocationRequestHostIP* (security) | *Required* The geolocation service now needs to specify the IP associated to the accessKey you're using | | String
|===
// endpoint options: END
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 5c372a0..70ba32f 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
@@ -94,8 +94,10 @@ public class WeatherConfiguration {
@UriParam(label = "advanced")
private HttpConnectionManager httpConnectionManager;
@UriParam(label = "security")
+ @Metadata(required = "true")
private String geolocationAccessKey;
- @Metadata(label = "security")
+ @UriParam(label = "security")
+ @Metadata(required = "true")
private String geolocationRequestHostIP;
public WeatherConfiguration(WeatherComponent component) {