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 |
|
|