/[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 1800 by torben, Thu Apr 28 10:13:36 2011 UTC revision 1801 by torben, Wed May 9 17:23:50 2012 UTC
# Line 64  public class DepartureServlet extends Ht Line 64  public class DepartureServlet extends Ht
64    
65          @Override          @Override
66          protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {                    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {          
67                  if (req.getParameter("station") == null) {                  if (req.getParameter("station") == null || req.getParameter("station").equals("") ) {
68                          resp.sendError(400, "not enough parameters (station)");                          resp.sendError(400, "not enough parameters (station)");
69                          return;                          return;
70                  }                  }
71                  if (req.getParameter("format") == null) {                  if (req.getParameter("format") == null || req.getParameter("format").equals("")) {
72                          resp.sendError(400, "not enough parameters (format)");                          resp.sendError(400, "not enough parameters (format)");
73                          return;                                          return;                
74                  }                  }

Legend:
Removed from v.1800  
changed lines
  Added in v.1801

  ViewVC Help
Powered by ViewVC 1.1.20