@UriParams public class WeatherConfiguration extends Object
Constructor and Description |
---|
WeatherConfiguration(WeatherComponent component) |
Modifier and Type | Method and Description |
---|---|
String |
getAppid() |
Integer |
getCnt() |
String |
getHeaderName() |
org.apache.commons.httpclient.HttpConnectionManager |
getHttpConnectionManager() |
List<String> |
getIds() |
WeatherLanguage |
getLanguage() |
String |
getLat() |
String |
getLocation() |
String |
getLon() |
WeatherMode |
getMode() |
String |
getName() |
String |
getPeriod() |
String |
getProxyAuthDomain() |
String |
getProxyAuthHost() |
String |
getProxyAuthMethod() |
String |
getProxyAuthPassword() |
String |
getProxyAuthUsername() |
String |
getProxyHost() |
Integer |
getProxyPort() |
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 |
setHeaderName(String headerName)
To store the weather result in this header instead of the message body.
|
void |
setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
To use a custom HttpConnectionManager to manage connections
|
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 |
setProxyAuthDomain(String proxyAuthDomain)
Domain for proxy NTLM authentication
|
void |
setProxyAuthHost(String proxyAuthHost)
Optional host for proxy NTLM authentication
|
void |
setProxyAuthMethod(String proxyAuthMethod)
Authentication method for proxy, either as Basic, Digest or NTLM.
|
void |
setProxyAuthPassword(String proxyAuthPassword)
Password for proxy authentication
|
void |
setProxyAuthUsername(String proxyAuthUsername)
Username for proxy authentication
|
void |
setProxyHost(String proxyHost)
The proxy host name
|
void |
setProxyPort(Integer proxyPort)
The proxy port number
|
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 be 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 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()
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 org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
public void setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public String getProxyAuthMethod()
public void setProxyAuthMethod(String proxyAuthMethod)
public String getProxyAuthUsername()
public void setProxyAuthUsername(String proxyAuthUsername)
public String getProxyAuthPassword()
public void setProxyAuthPassword(String proxyAuthPassword)
public String getProxyAuthDomain()
public void setProxyAuthDomain(String proxyAuthDomain)
public String getProxyAuthHost()
public void setProxyAuthHost(String proxyAuthHost)
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)
Apache Camel