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

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

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

revision 1698 by torben, Wed Feb 29 10:45:48 2012 UTC revision 1699 by torben, Wed Feb 29 13:03:30 2012 UTC
# Line 32  import dk.thoerup.genericjavautils.Timeo Line 32  import dk.thoerup.genericjavautils.Timeo
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 {
# Line 127  public class CompareStations extends Htt Line 127  public class CompareStations extends Htt
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>&nbsp;&nbsp;" + data + " - " + disabled + "</li>\n" );                          sb.append( "<li><a target='_blank' href='http://trafikinfo.bane.dk" + uri + "'>" + s + "</a>&nbsp;&nbsp;" + data + "" + disabled + "</li>\n" );
136                  }                                                }                              
137                  sb.append("</ul>");                  sb.append("</ul>");
138    

Legend:
Removed from v.1698  
changed lines
  Added in v.1699

  ViewVC Help
Powered by ViewVC 1.1.20