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

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

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

revision 970 by torben, Fri Jul 9 21:23:48 2010 UTC revision 971 by torben, Fri Jul 9 21:46:45 2010 UTC
# Line 95  public class DepartureFetcher { Line 95  public class DepartureFetcher {
95              //String uri = "http://www.bane.dk/visStation.asp?ArtikelID=4275&W=" + type + "&S=" + stationcode;              //String uri = "http://www.bane.dk/visStation.asp?ArtikelID=4275&W=" + type + "&S=" + stationcode;
96              String uri = "http://trafikinfo.bane.dk/Trafikinformation/AfgangAnkomst/" + arrivalDeparture + "/" + stationcode + "/" +type + "/UdvidetVisning";              String uri = "http://trafikinfo.bane.dk/Trafikinformation/AfgangAnkomst/" + arrivalDeparture + "/" + stationcode + "/" +type + "/UdvidetVisning";
97    
98              logger.info("URI: " + uri);              //logger.info("URI: " + uri);
99              HtmlunitInvocation wrapper = new HtmlunitInvocation(webClient, uri);              HtmlunitInvocation wrapper = new HtmlunitInvocation(webClient, uri);
100              CircuitBreaker breaker = CircuitBreakerManager.getManager().getCircuitBreaker("banedk");              CircuitBreaker breaker = CircuitBreakerManager.getManager().getCircuitBreaker("banedk");
101                            
# Line 251  public class DepartureFetcher { Line 251  public class DepartureFetcher {
251          }          }
252                    
253          private String extractTrainNumber(HtmlElement trainTd) {          private String extractTrainNumber(HtmlElement trainTd) {
                 logger.info("Extract traininfo " + trainTd.toString() );  
254                  String number = "";                  String number = "";
255                  HtmlElement anchorElement = trainTd.getElementsByTagName("a").get(0);                  HtmlElement anchorElement = trainTd.getElementsByTagName("a").get(0);
256                  String href = anchorElement.getAttribute("href");                  String href = anchorElement.getAttribute("href");

Legend:
Removed from v.970  
changed lines
  Added in v.971

  ViewVC Help
Powered by ViewVC 1.1.20