public class YahooWeatherDaoImpl extends java.lang.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() |
java.util.Collection<Location> |
find(java.lang.String location) |
protected java.lang.Object |
getAndDeserialize(java.lang.String url) |
Weather |
getWeather(java.lang.String locationCode,
TemperatureUnit unit)
Gets the weather from an implemented source.
|
java.lang.String |
getWeatherProviderLink() |
java.lang.String |
getWeatherProviderName() |
void |
setConnectionTimeout(int connectionTimeout) |
void |
setKey(java.lang.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(java.lang.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 java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic java.util.Collection<Location> find(java.lang.String location)
find in interface IWeatherDaolocation - A String representing a location to findpublic Weather getWeather(java.lang.String locationCode, TemperatureUnit unit)
IWeatherDaogetWeather in interface IWeatherDaolocationCode - A string value representing the location to retrieve weather from.public java.lang.String getWeatherProviderName()
getWeatherProviderName in interface IWeatherDaopublic java.lang.String getWeatherProviderLink()
getWeatherProviderLink in interface IWeatherDaoprotected java.lang.Object getAndDeserialize(java.lang.String url)
Copyright © 2018 Jasig. All Rights Reserved.