Examples of WeatherService


Examples of org.pokenet.client.backend.time.WeatherService

        if(m_ui == null){
          LoadingList.setDeferredLoading(false);
         
          setPlayerSpriteFactory();

          m_weather = new WeatherService();
          m_time = new TimeService();
          if(options != null)
            m_weather.setEnabled(!Boolean.parseBoolean(options.get("disableWeather")));
         
          m_ui = new Ui(m_display);
View Full Code Here

Examples of org.sonatype.mavenbook.weather.WeatherService

public class WeatherServlet extends HttpServlet {
    public void doGet(HttpServletRequest request,
                      HttpServletResponse response)
        throws ServletException, IOException {
  String zip = request.getParameter("zip" );
  WeatherService weatherService = new WeatherService();
  PrintWriter out = response.getWriter();
        try {
      out.println( weatherService.retrieveForecast( zip ) );
  } catch( Exception e ) {
      out.println( "Error Retrieving Forecast: " + e.getMessage() );
  }
        out.flush();
        out.close();
View Full Code Here

Examples of org.springframework.osgi.samples.weather.service.WeatherService

    public void testWeatherServiceExported() {

        ServiceReference ref = bundleContext.getServiceReference("org.springframework.osgi.samples.weather.service.WeatherService");
        assertNotNull("Service Reference is null", ref);
        try {
            WeatherService weather = (WeatherService) bundleContext.getService(ref);
            assertNotNull("Cannot find the service", weather);
            assertEquals(new Double(15.0), weather.getHistoricalHigh(new GregorianCalendar(2004, 0, 1).getTime()));
        }
        finally {
          bundleContext.ungetService(ref);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.