aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/network
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring: Network cleanupSamuel Tardieu2012-04-242-18/+15
|
* Refactoring: remove final modifier on some methodsSamuel Tardieu2012-04-221-1/+1
| | | | | final adds nothing to methods declared in classes declared final or to private methods.
* Refactoring: cleanup control flowSamuel Tardieu2012-04-202-15/+14
|
* Add FIXME: message and ask for clarificationSamuel Tardieu2012-04-201-18/+17
|
* NPE when starting without NetworkPortree-Kid2012-04-201-1/+1
|
* Refactoring: centralize all network accesses through a single pointSamuel Tardieu2012-04-181-70/+91
|
* Add the possibility to merge or extend Parameters objectsSamuel Tardieu2012-04-181-5/+41
|
* Refactoring: move Login from network to connector.gcSamuel Tardieu2012-04-171-422/+0
|
* Refactoring: move getRequestLogged/postRequestlogged into LoginSamuel Tardieu2012-04-172-44/+42
|
* Refactoring: separate Cookies into their own fileSamuel Tardieu2012-04-173-44/+51
|
* Refactoring: put the header into a common placeSamuel Tardieu2012-04-171-2/+1
|
* Refactoring: remove unused methodSamuel Tardieu2012-04-171-5/+0
|
* Refactoring: use Parameters as a typeSamuel Tardieu2012-04-171-4/+3
|
* Refactoring: response cannot be nullSamuel Tardieu2012-04-171-1/+1
|
* Refactoring: use isSuccess() when possibleSamuel Tardieu2012-04-171-1/+1
|
* Refactoring: use common method to retrieve JSONSamuel Tardieu2012-04-171-15/+7
|
* Refactoring: rename request into getRequestSamuel Tardieu2012-04-173-22/+19
| | | | Those methods only do GET requests.
* Refactoring: do not use cgBase from NetworkSamuel Tardieu2012-04-171-21/+3
|
* Fix #1408: do not discard cache when saving cache dataSamuel Tardieu2012-04-161-2/+2
| | | | | There is no reason to not use the cache when saving a cache whose images are already present in the device.
* Merge branch 'common-network-code' into upstreamSamuel Tardieu2012-04-133-28/+58
|\ | | | | | | | | Conflicts: main/src/cgeo/geocaching/CacheDetailActivity.java
| * Add the possibility to set headers to a GET requestSamuel Tardieu2012-04-121-10/+36
| |
| * Cleanup: do not add Content-Type to GET requestSamuel Tardieu2012-04-123-22/+26
| | | | | | | | | | Whatever code requests its presence is probably wrong, as Content-Type describes the type of the body, which is non-existent for a GET request.
* | refactoring: remove the logging tag from settingsBananeweizen2012-04-123-36/+34
|/
* Remove never-used actualMemberStatusSamuel Tardieu2012-04-111-11/+0
|
* Remove unused methodsSamuel Tardieu2012-04-111-6/+0
| | | | Those methods have been flagged as unused by proguard.
* Refresh the data of confirmed cached dataSamuel Tardieu2012-04-021-2/+7
| | | | | | When cached data is confirmed valid by a 304 (use local copy) response from the web server, reset the file date, since the file is as good as new.
* Do not use stale information if the cache file does not exist anymoreSamuel Tardieu2012-04-021-1/+1
| | | | | | Saved ETag or Last-Modified information is useless and should not be used if, for any reason, the file holding the cached data has been removed from permanent storage.
* Proxy all logs through cgeo.geocaching.utils.LogSamuel Tardieu2012-03-313-3/+3
| | | | | | | | The behaviour is unchanged, but altering Settings.isDebug() to return false will prevent verbose, debug and info levels messages from being logged. Part of work on #1301.
* Cache ETag and Last-Modified HTTP headers for imagesSamuel Tardieu2012-03-252-46/+34
| | | | | | | | | | | | | | | | | Instead of comparing the "Last-Modified" dates and adding a round-trip to the server, this now caches the "ETag" and "Last-Modified" headers if they are present in the server HTTP response. Those values are given back (using respectively "If-None-Match" and "If-Modified-Since" request headers) to the server when requesting an update. Most servers will answer with a "304" (use local copy) if the requested resource has not been updated. In the unlikely case that the server does not honor those headers, the image will be refreshed in any case, so we will not serve old images to the user. The rationale for storing the "Last-Modified" return value is to conform to RFC 2616 advice to treat it as opaque because the server might do an exact string comparison instead of an ordered date comparison.
* Add method to refresh cache and some cleanupcampbeb2012-03-242-0/+34
|
* static code analysis and other fixesBananeweizen2012-03-181-8/+17
| | | | | | | * NumberParsingExceptions, NullPointerExceptions * StringBuilder instead of StringBuffer * access rights * interfaces instead of classes * ...
* refactoring: first part of removing cgBaseBananeweizen2012-03-104-5/+756
| | | | | | | * extract network stuff (non GC related) * extract GC login stuff * move UI related pieces to activities * to do: move parsing and searching to better places, remove cgBase completely afterwards
* fix #1238: Fatal Error while updating stored cachesBananeweizen2012-03-091-6/+2
|
* Moved methods to better fitting classesblafoo2012-02-291-1/+1
|
* Changed database handlingblafoo2012-02-081-1/+2
|
* refactoring: moved some classes to packages, renamingBananeweizen2012-01-222-1/+74
|
* Fix #903 Rename field "reason" to "listId"blafoo2011-12-191-4/+4
|
* refactoring: clean some TODOs in the codeBananeweizen2011-12-021-4/+2
|
* fix: images of GC caches not loaded due to relative URLsBananeweizen2011-11-301-1/+7
|
* fix: use 1x1 transparent image instead of undefined image for counterbananeweizen2011-11-261-2/+6
| | | banners (avoids small blue/violet square in description)
* fix: use finally block for closing resourcebananeweizen2011-11-261-5/+11
|
* fix: avoid out of memory when decoding large bitmapsBananeweizen2011-11-251-13/+25
|
* add another counter image to blacklistBananeweizen2011-11-251-1/+2
|
* fix several FindBugs warningsBananeweizen2011-11-191-1/+1
| | | | | | * methods starting with uppercase letter * unused field and access methods * null value not explicitly given as null argument in method call * unnecessary math.floor()
* Create directories only when we will write a fileSamuel Tardieu2011-11-161-2/+2
| | | | | | | | The directory structure should not be created when we are trying to read a file, especially if this file is located into the secondary storage area where we look "just in case". This fixes #802.
* Cache images systematicallySamuel Tardieu2011-11-011-22/+3
| | | | See discussion in #742.
* Decode images that are not saved to diskSamuel Tardieu2011-11-011-0/+11
| | | | This fixes #742.
* Update log messages to reflect the source class nameSamuel Tardieu2011-11-011-5/+5
|
* fix #731: OOM in images when downloadingbananeweizen2011-10-301-0/+221
|
* Use existing HTTP connection code for Twitter authorization dialogSamuel Tardieu2011-10-101-0/+35
Also, move OAuth signing into package cgeo.geocaching.network. This is a tentative fix for #280.