@UriParams public class WeatherConfiguration extends Object
| Constructor and Description |
|---|
WeatherConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppid() |
Integer |
getCnt() |
String |
getGeolocationAccessKey() |
GeoLocationProvider |
getGeoLocationProvider() |
String |
getGeolocationRequestHostIP() |
String |
getHeaderName() |
org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
List<String> |
getIds() |
WeatherLanguage |
getLanguage() |
String |
getLat() |
String |
getLocation() |
String |
getLon() |
WeatherMode |
getMode() |
String |
getName() |
String |
getPeriod() |
String |
getRightLon() |
String |
getTopLat() |
WeatherUnits |
getUnits() |
WeatherApi |
getWeatherApi() |
String |
getZip() |
Integer |
getZoom() |
void |
setAppid(String appid)
APPID ID used to authenticate the user connected to the API Server
|
void |
setCnt(Integer cnt)
Number of results to be found
|
void |
setGeolocationAccessKey(String geolocationAccessKey)
The geolocation service now needs an accessKey to be used
|
void |
setGeoLocationProvider(GeoLocationProvider geoLocationProvider)
A custum geolocation provider to determine the longitude and latitude to use when no location information is set.
|
void |
setGeolocationRequestHostIP(String geolocationRequestHostIP)
The geolocation service now needs to specify the IP associated to the accessKey you're using
|
void |
setHeaderName(String headerName)
To store the weather result in this header instead of the message body.
|
void |
setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
To use an existing configured http client (for example with http proxy)
|
void |
setIds(List<String> ids) |
void |
setIds(String id)
List of id's of city/stations.
|
void |
setLanguage(WeatherLanguage language)
Language of the response.
|
void |
setLat(String lat)
Latitude of location.
|
void |
setLocation(String location)
If null Camel will try and determine your current location using the geolocation of your ip address, else specify
the city,country.
|
void |
setLon(String lon)
Longitude of location.
|
void |
setMode(WeatherMode mode)
The output format of the weather data.
|
void |
setName(String name) |
void |
setPeriod(String period)
If null, the current weather will be returned, else use values of 5, 7, 14 days.
|
void |
setRightLon(String rightLon)
For boxed queries this is the right longtitude.
|
void |
setTopLat(String topLat)
For boxed queries this is the top latitude.
|
void |
setUnits(WeatherUnits units)
The units for temperature measurement.
|
void |
setWeatherApi(WeatherApi weatherApi)
The API to use (current, forecast/3 hour, forecast daily, station)
|
void |
setZip(String zip)
Zip-code, e.g.
|
void |
setZoom(Integer zoom)
For boxed queries this is the zoom.
|
public String getPeriod()
public void setPeriod(String period)
public String getName()
public void setName(String name)
public WeatherMode getMode()
public void setMode(WeatherMode mode)
public WeatherUnits getUnits()
public void setUnits(WeatherUnits units)
public String getLocation()
public void setLocation(String location)
public String getHeaderName()
public void setHeaderName(String headerName)
public String getLat()
public void setLat(String lat)
public String getLon()
public void setLon(String lon)
public void setAppid(String appid)
public String getAppid()
public WeatherLanguage getLanguage()
public void setLanguage(WeatherLanguage language)
public String getRightLon()
public void setRightLon(String rightLon)
public String getTopLat()
public void setTopLat(String topLat)
public Integer getZoom()
public void setZoom(Integer zoom)
public String getZip()
public void setZip(String zip)
public void setIds(String id)
public Integer getCnt()
public void setCnt(Integer cnt)
public WeatherApi getWeatherApi()
public void setWeatherApi(WeatherApi weatherApi)
public String getGeolocationAccessKey()
public void setGeolocationAccessKey(String geolocationAccessKey)
public String getGeolocationRequestHostIP()
public void setGeolocationRequestHostIP(String geolocationRequestHostIP)
public org.apache.http.impl.client.CloseableHttpClient getHttpClient()
public void setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
public GeoLocationProvider getGeoLocationProvider()
public void setGeoLocationProvider(GeoLocationProvider geoLocationProvider)
Apache Camel