Class YahooWeatherRequester
java.lang.Object
org.silverpeas.looks.aurora.service.weather.YahooWeatherRequester
- All Implemented Interfaces:
WeatherServiceRequester
@Service
@Named("Yahoo")
public class YahooWeatherRequester
extends Object
implements WeatherServiceRequester
Requester of the Yahoo weather service.
- Author:
- mmoquillon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequest weather forecast data of the specified city.
-
Constructor Details
-
YahooWeatherRequester
public YahooWeatherRequester()
-
-
Method Details
-
request
Description copied from interface:WeatherServiceRequesterRequest weather forecast data of the specified city. If the requesting fails, then aWebApplicationExceptionis thrown.- Specified by:
requestin interfaceWeatherServiceRequester- Parameters:
cityId- a unique identifier of a city. Such identifiers are specific to the weather service.- Returns:
- a JSON or an XML representation of the weather forecast data.
-