Class YahooWeatherRequester
- java.lang.Object
-
- org.silverpeas.looks.aurora.service.weather.YahooWeatherRequester
-
- All Implemented Interfaces:
WeatherServiceRequester
@Named("Yahoo") @Service public class YahooWeatherRequester extends Object implements WeatherServiceRequester
Requester of the Yahoo weather service.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description YahooWeatherRequester()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeatherForecastData
request(String cityId)
Request weather forecast data of the specified city.
-
-
-
Method Detail
-
request
public WeatherForecastData request(String cityId)
Description copied from interface:WeatherServiceRequester
Request weather forecast data of the specified city. If the requesting fails, then aWebApplicationException
is thrown.- Specified by:
request
in 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.
-
-