Package org.silverpeas.looks.aurora.service.weather

## Class AccuWeatherRequester

- java.lang.Object
- - org.silverpeas.looks.aurora.service.weather.AccuWeatherRequester

- All Implemented Interfaces:
    `WeatherServiceRequester`

      @Named("AccuWeather")
      @Service
      public class AccuWeatherRequester
      extends Object
      implements WeatherServiceRequester

  Requester of the AccuWeather API service.
  Author:
    mmoquillon

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AccuWeatherRequester()` |

  - ### 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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AccuWeatherRequester

          public AccuWeatherRequester()

  - ### 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 a `WebApplicationException` is thrown.
      Specified by:
        `request` in interface `WeatherServiceRequester`
      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.