/** * Copyright (c) 2013 Samuel A. Rebelsky. All rights * reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Lesser GNU General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ import edu.grinnell.glimmer.ushahidi.UshahidiWebClient; /** * A simple test of Ushahidi Web clients. Takes the server from the * command line, connects, and prints out all of the incidents. * * @version 0.2 of 7 August 2013 * @author Samuel A. Rebelsky */ public class WebClientExperiment { /** * Connect to the server given on the command line. */ public static void main(String[] args) throws Exception { UshahidiWebClient client = new UshahidiWebClient(args[0],3); UshahidiClientUtils.printIncidents(client); } // main(String[]) } // WebClientExperiment