org.ow2.frascati.examples.twitterweather.lib
Class Orchestration

java.lang.Object
  extended by org.ow2.frascati.examples.twitterweather.lib.Orchestration
All Implemented Interfaces:
TwitterWeather

public class Orchestration
extends java.lang.Object
implements TwitterWeather

A client that orchestrates the Weather service with the Twitter one.

Author:
Nicolas Dolet

Field Summary
protected  Decoder decoder
          Refernce to the decoder service
protected  GlobalWeatherSoap weather
          Reference to the Weather service.
 
Constructor Summary
Orchestration()
           
 
Method Summary
 java.lang.String getWeatherForUser(java.lang.String userId)
          Return the weather for a given Twitter user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decoder

protected Decoder decoder
Refernce to the decoder service


weather

protected GlobalWeatherSoap weather
Reference to the Weather service.

Constructor Detail

Orchestration

public Orchestration()
Method Detail

getWeatherForUser

public java.lang.String getWeatherForUser(java.lang.String userId)
Description copied from interface: TwitterWeather
Return the weather for a given Twitter user

Specified by:
getWeatherForUser in interface TwitterWeather
Parameters:
userId - the id of the Twitter user
Returns:
The weather in userId city
See Also:
TwitterWeather.getWeatherForUser(String)


Copyright © 2010 OW2 Consortium. All Rights Reserved.