public class YahooWeatherDaoImpl extends Object implements IWeatherDao, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
YahooWeatherDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Collection<Location> |
find(String location) |
protected Object |
getAndDeserialize(String url) |
Weather |
getWeather(String locationCode,
TemperatureUnit unit)
Gets the weather from an implemented source.
|
String |
getWeatherProviderLink() |
String |
getWeatherProviderName() |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setKey(String key) |
void |
setLocationParsingService(IYahooLocationParsingService parser) |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
void |
setReadTimeout(int readTimeout) |
void |
setTimesToRetry(int timesToRetry) |
void |
setWeatherParsingService(IYahooWeatherParsingService parser) |
public void setWeatherParsingService(IYahooWeatherParsingService parser)
public void setLocationParsingService(IYahooLocationParsingService parser)
public void setKey(String key)
public void setMessageSource(org.springframework.context.MessageSource messageSource)
public void setConnectionTimeout(int connectionTimeout)
public void setReadTimeout(int readTimeout)
public void setTimesToRetry(int timesToRetry)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic Collection<Location> find(String location)
find in interface IWeatherDaolocation - A String representing a location to findpublic Weather getWeather(String locationCode, TemperatureUnit unit)
IWeatherDaogetWeather in interface IWeatherDaolocationCode - A string value representing the location to retrieve weather from.public String getWeatherProviderName()
getWeatherProviderName in interface IWeatherDaopublic String getWeatherProviderLink()
getWeatherProviderLink in interface IWeatherDaoCopyright © 2015 Jasig. All Rights Reserved.