@UriParams public class WeatherConfiguration extends Object
Constructor and Description |
---|
WeatherConfiguration(WeatherComponent component) |
Modifier and Type | Method and Description |
---|---|
String |
getAppid() |
String |
getHeaderName() |
String |
getLat() |
String |
getLocation() |
String |
getLon() |
WeatherMode |
getMode() |
String |
getName() |
String |
getPeriod() |
String |
getQuery() |
String |
getQuery(String location) |
WeatherUnits |
getUnits() |
void |
setAppid(String appid)
APPID ID used to authenticate the user connected to the API Server
|
void |
setHeaderName(String headerName)
To store the weather result in this header instead of the message body.
|
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 |
setUnits(WeatherUnits units)
The units for temperature measurement.
|
public WeatherConfiguration(WeatherComponent component)
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()
Apache Camel