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

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

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2465)

Revision 1833 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 21 06:45:41 2012 UTC (11 years, 9 months ago) by torben
File length: 20411 byte(s)
Diff to previous 1832 , to selected 1562
only append trackType if it is not-empty

Revision 1832 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 20 21:15:37 2012 UTC (11 years, 9 months ago) by torben
File length: 20359 byte(s)
Diff to previous 1562
First attempt at tritinfo integration

Revision 1562 - (view) (download) (annotate) - [selected]
Modified Fri Jul 8 16:26:09 2011 UTC (12 years, 10 months ago) by torben
File length: 18373 byte(s)
Diff to previous 1424
Flesh out all logic from TrainInfoCommon so it just contains simple beans

Revision 1424 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 17:19:30 2011 UTC (13 years, 1 month ago) by torben
File length: 17523 byte(s)
Diff to previous 1409 , to selected 1562
//TODO: FetchTraintype.Both should be removed some time after 0.9.5 release

Revision 1409 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 2 11:59:40 2011 UTC (13 years, 1 month ago) by torben
File length: 17524 byte(s)
Diff to previous 1372 , to selected 1562
Adapt service to new StationEntry location

Revision 1372 - (view) (download) (annotate) - [select for diffs]
Modified Thu Apr 21 05:51:25 2011 UTC (13 years, 1 month ago) by torben
File length: 17536 byte(s)
Diff to previous 1366 , to selected 1562
Use a enum to select backend

Revision 1366 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 20 20:04:05 2011 UTC (13 years, 1 month ago) by torben
File length: 17514 byte(s)
Diff to previous 1355 , to selected 1562
More complete mobile site parser

Revision 1355 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 20 19:01:33 2011 UTC (13 years, 1 month ago) by torben
File length: 17046 byte(s)
Diff to previous 1335 , to selected 1562
Move timeoutmap to GenericJavaUtils

Revision 1335 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 20 06:35:13 2011 UTC (13 years, 1 month ago) by torben
File length: 16556 byte(s)
Diff to previous 1334 , to selected 1562
use a logger instead

Revision 1334 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 20 06:28:04 2011 UTC (13 years, 1 month ago) by torben
File length: 16567 byte(s)
Diff to previous 1333 , to selected 1562
typo

Revision 1333 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 20 06:26:19 2011 UTC (13 years, 1 month ago) by torben
File length: 16567 byte(s)
Diff to previous 1332 , to selected 1562
make temp mobile site parser work with stog

Revision 1332 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 20 06:20:27 2011 UTC (13 years, 1 month ago) by torben
File length: 16392 byte(s)
Diff to previous 1330 , to selected 1562
origin field must not be empty

Revision 1330 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 20 05:20:43 2011 UTC (13 years, 1 month ago) by torben
File length: 16391 byte(s)
Diff to previous 1305 , to selected 1562
First stab at parsing mobile.bane.dk

Revision 1305 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 19 15:07:23 2011 UTC (13 years, 1 month ago) by torben
File length: 12915 byte(s)
Diff to previous 1303 , to selected 1562
Remove extra ';'

Revision 1303 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 19 11:52:39 2011 UTC (13 years, 1 month ago) by torben
File length: 12916 byte(s)
Diff to previous 1255 , to selected 1562
first step towards a settings system

Revision 1255 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 4 10:56:44 2011 UTC (13 years, 1 month ago) by torben
File length: 12883 byte(s)
Diff to previous 1252 , to selected 1562
Move database related classes to it's own package

Revision 1252 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 4 08:27:24 2011 UTC (13 years, 1 month ago) by torben
File length: 12880 byte(s)
Diff to previous 1248 , to selected 1562
No need to sort if we only have either S-tog or regional trains

Revision 1248 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 31 17:13:19 2011 UTC (13 years, 2 months ago) by torben
File length: 12768 byte(s)
Diff to previous 1188 , to selected 1562
Add support for fetching just one of regional or s-tog departures

Revision 1188 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 8 12:39:27 2010 UTC (13 years, 6 months ago) by torben
File length: 12501 byte(s)
Diff to previous 1063 , to selected 1562
Remove filtering of those departures that have left or should have left the station by now.

Revision 1063 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 16 15:30:27 2010 UTC (13 years, 8 months ago) by torben
File length: 12485 byte(s)
Diff to previous 1061 , to selected 1562
Exprimental #3: update to changes in databeans

Revision 1061 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 16 14:04:28 2010 UTC (13 years, 8 months ago) by torben
File length: 12557 byte(s)
Diff to previous 1060 , to selected 1562
Experimental commit #2, move databeans to common

Revision 1060 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 16 13:32:10 2010 UTC (13 years, 8 months ago) by torben
File length: 12430 byte(s)
Diff to previous 1048 , to selected 1562
Experimental: use Simple (simple.sourceforge.net) for XML serialization

Revision 1048 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 14 06:10:30 2010 UTC (13 years, 8 months ago) by torben
File length: 12416 byte(s)
Diff to previous 1047 , to selected 1562
Re-add Debug log statements but with loglevel=fine

Revision 1047 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 14 05:51:58 2010 UTC (13 years, 8 months ago) by torben
File length: 12378 byte(s)
Diff to previous 1046 , to selected 1562
remove debug info

Revision 1046 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 14 05:33:30 2010 UTC (13 years, 8 months ago) by torben
File length: 12409 byte(s)
Diff to previous 1045 , to selected 1562
on www.bane.dk, dont get departures that already has left the station

Revision 1045 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 14 05:20:17 2010 UTC (13 years, 8 months ago) by torben
File length: 11974 byte(s)
Diff to previous 1040 , to selected 1562
URLencode the stationID used in request URL

Revision 1040 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 12 19:37:56 2010 UTC (13 years, 8 months ago) by torben
File length: 11873 byte(s)
Diff to previous 1039 , to selected 1562
Also clean the timetable strings from www.bane.dk

Revision 1039 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 12 19:03:32 2010 UTC (13 years, 8 months ago) by torben
File length: 11866 byte(s)
Diff to previous 1038 , to selected 1562
Also make trainnumber extraction work with old site

Revision 1038 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 12 18:41:17 2010 UTC (13 years, 8 months ago) by torben
File length: 11349 byte(s)
Diff to previous 1037 , to selected 1562
Make jsoup act correct with old site

Revision 1037 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 11 07:43:09 2010 UTC (13 years, 8 months ago) by torben
File length: 11071 byte(s)
Diff to previous 1035 , to selected 1562
Write a log entry if no departures was found

Revision 1035 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 8 12:38:26 2010 UTC (13 years, 8 months ago) by torben
File length: 10944 byte(s)
Diff to previous 1034 , to selected 1562
Remove debug output

Revision 1034 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 8 12:31:55 2010 UTC (13 years, 8 months ago) by torben
File length: 11126 byte(s)
Diff to previous 1026 , to selected 1562
Enable usage of either the new azure parser or the old www.bane.dk parser

Revision 1026 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 2 18:37:49 2010 UTC (13 years, 8 months ago) by torben
File length: 10522 byte(s)
Diff to previous 1021 , to selected 1562
Bake bane.dk http timeout configurable

Revision 1021 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 30 13:59:54 2010 UTC (13 years, 9 months ago) by torben
File length: 10431 byte(s)
Diff to previous 1020 , to selected 1562
Lookup the stationName in the fetcher and put it in the departureBean

That way we don't need db acccess on a cache hit and on a cache miss we saves one DB lookup operation

Revision 1020 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 30 11:53:34 2010 UTC (13 years, 9 months ago) by torben
File length: 10377 byte(s)
Diff to previous 994 , to selected 1562
Don't show departures that already has departured

Revision 994 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 14 19:22:23 2010 UTC (13 years, 10 months ago) by torben
File length: 9949 byte(s)
Diff to previous 992 , to selected 1562
Stationcode muste be URLencoded or bane.dk will use a lot of time on parsing the request

Revision 992 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 14 08:05:31 2010 UTC (13 years, 10 months ago) by torben
File length: 9851 byte(s)
Diff to previous 980 , to selected 1562
Experiment: switch to jsoup instead of htmlunit

Revision 980 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 10 11:01:07 2010 UTC (13 years, 10 months ago) by torben
File length: 10429 byte(s)
Diff to previous 978 , to selected 1562
Re-enable caching of depatures

Revision 978 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 10 10:53:44 2010 UTC (13 years, 10 months ago) by torben
File length: 10484 byte(s)
Diff to previous 974 , to selected 1562
Add code to extract notifications

Revision 974 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 22:30:18 2010 UTC (13 years, 10 months ago) by torben
File length: 9765 byte(s)
Diff to previous 973 , to selected 1562
outcomment the temp site code - until we know whether it ever will be needed again

Revision 973 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 22:28:07 2010 UTC (13 years, 10 months ago) by torben
File length: 9744 byte(s)
Diff to previous 972 , to selected 1562
make extraction of s-tog number a little more elegant

Revision 972 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 22:14:46 2010 UTC (13 years, 10 months ago) by torben
File length: 10008 byte(s)
Diff to previous 971 , to selected 1562
Use enum instead of strings to determine the train-types (this saves some string comparisons)

Revision 971 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 21:46:45 2010 UTC (13 years, 10 months ago) by torben
File length: 9577 byte(s)
Diff to previous 970 , to selected 1562
remove debug log statements

Revision 970 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 9 21:23:48 2010 UTC (13 years, 10 months ago) by torben
File length: 9635 byte(s)
Diff to previous 939 , to selected 1562
Switch banedk fetchers to bane.dk's new site (http://trafikinfo.bane.dk/) ... this new site is some microsoft azure-based cloud thingie so hopefully it will have a better uptime/stability once we reach winter 

Revision 939 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 28 12:35:35 2010 UTC (13 years, 11 months ago) by torben
File length: 9253 byte(s)
Diff to previous 860 , to selected 1562
HtmlunitInvocation is a more correct name

Revision 860 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 16 08:57:15 2010 UTC (13 years, 11 months ago) by torben
File length: 9245 byte(s)
Diff to previous 830 , to selected 1562
Trim status field for white-space


Revision 830 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 10 22:36:25 2010 UTC (13 years, 11 months ago) by torben
File length: 9238 byte(s)
Diff to previous 829 , to selected 1562
remove debug output

Revision 829 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 10 22:26:09 2010 UTC (13 years, 11 months ago) by torben
File length: 9320 byte(s)
Diff to previous 711 , to selected 1562
Add backend support for reading arrivals

Revision 711 - (view) (download) (annotate) - [select for diffs]
Modified Wed May 5 20:11:03 2010 UTC (14 years ago) by torben
File length: 9025 byte(s)
Diff to previous 697 , to selected 1562
First take on some statistics

Revision 697 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 3 07:42:02 2010 UTC (14 years ago) by torben
File length: 8917 byte(s)
Diff to previous 591 , to selected 1562
Better handling of train-types (regional vs s-train)

Revision 591 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 10 14:07:04 2010 UTC (14 years, 3 months ago) by torben
File length: 8873 byte(s)
Diff to previous 588 , to selected 1562
Act as a Firefox 3 browser, and cleanup HtmlUnit WebClient instance when done

Revision 588 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 8 19:12:15 2010 UTC (14 years, 3 months ago) by torben
File length: 8696 byte(s)
Diff to previous 584 , to selected 1562
Rewrite to use a DAO class for DB access

Revision 584 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 5 13:57:39 2010 UTC (14 years, 3 months ago) by torben
File length: 9053 byte(s)
Diff to previous 583 , to selected 1562
Move some various parameters to web.xml

Revision 583 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 2 19:18:20 2010 UTC (14 years, 3 months ago) by torben
File length: 9023 byte(s)
Diff to previous 582 , to selected 1562
Forgot to remove debug log statement

Revision 582 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 2 19:05:08 2010 UTC (14 years, 3 months ago) by torben
File length: 9058 byte(s)
Diff to previous 580 , to selected 1562
Bug fix in temp site parser

Revision 580 - (view) (download) (annotate) - [select for diffs]
Modified Tue Feb 2 18:42:38 2010 UTC (14 years, 3 months ago) by torben
File length: 9238 byte(s)
Diff to previous 468 , to selected 1562
Added a screenscraper for bane.dk's temporary site

Revision 468 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 22 06:04:45 2009 UTC (14 years, 7 months ago) by torben
File length: 6578 byte(s)
Diff to previous 451 , to selected 1562
Updated with new circuitbreaker package names

Revision 451 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 20 10:32:19 2009 UTC (14 years, 7 months ago) by torben
File length: 6578 byte(s)
Diff to previous 428 , to selected 1562
Degrade from throwable to exception

Revision 428 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 9 08:52:37 2009 UTC (14 years, 7 months ago) by torben
File length: 6578 byte(s)
Diff to previous 421 , to selected 1562
Refactor TimeoutCache into a real Map

Revision 421 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 8 12:19:42 2009 UTC (14 years, 7 months ago) by torben
File length: 6566 byte(s)
Diff to previous 410 , to selected 1562
Enabled the usage of Circuit breaker to guard agains bane.dk failures

Revision 410 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 7 13:37:37 2009 UTC (14 years, 7 months ago) by torben
File length: 6264 byte(s)
Diff to previous 389 , to selected 1562
Bugfix, better extraction of  trainnumbers for S-trains

Revision 389 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 2 17:18:31 2009 UTC (14 years, 7 months ago) by torben
File length: 6214 byte(s)
Diff to previous 387 , to selected 1562
Don't log on cache miss - and loglevel=info should be sufficient for cache hit messages

Revision 387 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 2 15:06:08 2009 UTC (14 years, 7 months ago) by torben
File length: 6302 byte(s)
Diff to previous 386 , to selected 1562
Enable caching for departures and timetables

Revision 386 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 2 13:44:31 2009 UTC (14 years, 7 months ago) by torben
File length: 5781 byte(s)
Diff to previous 375 , to selected 1562
When bane.dk is pressed it needs some more time to respond

Revision 375 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 30 20:58:37 2009 UTC (14 years, 8 months ago) by torben
File length: 5781 byte(s)
Diff to previous 349 , to selected 1562
Always save a time string, no matter whether bane.dk has one for us :)

Revision 349 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 28 19:14:18 2009 UTC (14 years, 8 months ago) by torben
File length: 5700 byte(s)
Diff to previous 348 , to selected 1562
Extract trainNumbers for S-train

Revision 348 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 27 19:14:39 2009 UTC (14 years, 8 months ago) by torben
File length: 5051 byte(s)
Diff to previous 342 , to selected 1562
Improve on error handling and logging

Revision 342 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 24 20:20:49 2009 UTC (14 years, 8 months ago) by torben
File length: 4830 byte(s)
Diff to previous 313 , to selected 1562
Make sure that the required table is present

Revision 313 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 11 07:13:46 2009 UTC (14 years, 8 months ago) by torben
File length: 4759 byte(s)
Diff to previous 308 , to selected 1562
Remove that frickin information 'i' from the note

Revision 308 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 10 18:13:52 2009 UTC (14 years, 8 months ago) by torben
File length: 4365 byte(s)
Diff to previous 307 , to selected 1562
Minor code tweaks

Revision 307 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 10 18:11:53 2009 UTC (14 years, 8 months ago) by torben
File length: 4396 byte(s)
Diff to previous 305 , to selected 1562
Finish new bane.dk screen-scraper

Revision 305 - (view) (download) (annotate) - [select for diffs]
Added Thu Sep 10 09:40:27 2009 UTC (14 years, 8 months ago) by torben
File length: 3425 byte(s)
Diff to selected 1562
first version of new departure provider (this is supposed to replace the php mess)

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.20