/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/LoadStations.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/LoadStations.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1356 by torben, Mon Apr 4 10:56:44 2011 UTC revision 1357 by torben, Wed Apr 20 19:06:35 2011 UTC
# Line 13  import javax.servlet.http.HttpServlet; Line 13  import javax.servlet.http.HttpServlet;
13  import javax.servlet.http.HttpServletRequest;  import javax.servlet.http.HttpServletRequest;
14  import javax.servlet.http.HttpServletResponse;  import javax.servlet.http.HttpServletResponse;
15    
16    import dk.thoerup.genericjavautils.HttpUtil;
17  import dk.thoerup.traininfoservice.db.DBConnection;  import dk.thoerup.traininfoservice.db.DBConnection;
18    
19  @Deprecated  @Deprecated
# Line 55  public class LoadStations extends HttpSe Line 56  public class LoadStations extends HttpSe
56          protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {          protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
57                  String url = "http://rafiki.t-hoerup.dk/tog/stations.php";                  String url = "http://rafiki.t-hoerup.dk/tog/stations.php";
58    
59                  String stationStr = DownloadUtil.getContentString(url, 5000, "ISO-8859-1");                  String stationStr = HttpUtil.getContentString(url, 5000, "ISO-8859-1");
60    
61                  String stations[] = stationStr.split("\n");                  String stations[] = stationStr.split("\n");
62                  Connection conn = null;                  Connection conn = null;

Legend:
Removed from v.1356  
changed lines
  Added in v.1357

  ViewVC Help
Powered by ViewVC 1.1.20