32 |
public class CompareStations extends HttpServlet { |
public class CompareStations extends HttpServlet { |
33 |
private static final long serialVersionUID = 1L; |
private static final long serialVersionUID = 1L; |
34 |
|
|
35 |
Map<String,String> cache = new TimeoutMap<String,String>(300 * 1000); |
Map<String,String> cache = new TimeoutMap<String,String>(600 * 1000); |
36 |
|
|
37 |
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
38 |
try { |
try { |
127 |
try { |
try { |
128 |
boolean tmpdisabled = dao.hasDisabledStation(s); |
boolean tmpdisabled = dao.hasDisabledStation(s); |
129 |
if (tmpdisabled == true) |
if (tmpdisabled == true) |
130 |
disabled = "disabled"; |
disabled = " - disabled"; |
131 |
} catch (Exception e) { |
} catch (Exception e) { |
132 |
throw new ServletException(e); |
throw new ServletException(e); |
133 |
} |
} |
134 |
|
|
135 |
sb.append( "<li><a target='_blank' href='http://trafikinfo.bane.dk" + uri + "'>" + s + "</a> " + data + " - " + disabled + "</li>\n" ); |
sb.append( "<li><a target='_blank' href='http://trafikinfo.bane.dk" + uri + "'>" + s + "</a> " + data + "" + disabled + "</li>\n" ); |
136 |
} |
} |
137 |
sb.append("</ul>"); |
sb.append("</ul>"); |
138 |
|
|