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

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/DepartureServlet.java

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

revision 457 by torben, Tue Oct 20 10:32:19 2009 UTC revision 458 by torben, Tue Oct 20 20:59:38 2009 UTC
# Line 42  public class DepartureServlet extends Ht Line 42  public class DepartureServlet extends Ht
42    
43          @Override          @Override
44          protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {          protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
45                    if (req.getParameter("station") == null) {
46                            resp.sendError(400, "not enough parameters");
47                            return;
48                    }
49                    
50                  int station = Integer.parseInt( req.getParameter("station") );                  int station = Integer.parseInt( req.getParameter("station") );
51                  String format = req.getParameter("format");                  String format = req.getParameter("format");
52    

Legend:
Removed from v.457  
changed lines
  Added in v.458

  ViewVC Help
Powered by ViewVC 1.1.20