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

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/banedk/TimetableServlet.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 45  public class TimetableServlet extends Ht Line 45  public class TimetableServlet extends Ht
45                    
46          @Override          @Override
47          protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {          protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
48                  if (request.getParameter("train") == null) {                  if (request.getParameter("train") == null || request.getParameter("train").equals("") ) {
49                          response.sendError(400, "not enough parameters (train)");                          response.sendError(400, "not enough parameters (train)");
50                          return;                          return;
51                  }                  }
52                  if (request.getParameter("type") == null) {                  if (request.getParameter("type") == null || request.getParameter("type").equals("") ) {
53                          response.sendError(400, "not enough parameters (type)");                          response.sendError(400, "not enough parameters (type)");
54                          return;                          return;
55                  }                  }

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

  ViewVC Help
Powered by ViewVC 1.1.20