diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2011-09-22 11:02:00 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2011-09-22 11:02:00 +0200 |
commit | a90199196e34be9fb985a38b40ef63e870e48f58 (patch) | |
tree | 9d0b103ec7113798dd79690a97d224df0614385f /main/src/cgeo/geocaching/cgeotouch.java | |
parent | 4ef252623bb43183290cb952c9e058a3dd59c59d (diff) | |
download | cgeo-a90199196e34be9fb985a38b40ef63e870e48f58.zip cgeo-a90199196e34be9fb985a38b40ef63e870e48f58.tar.gz cgeo-a90199196e34be9fb985a38b40ef63e870e48f58.tar.bz2 |
Precompute static URI values
Diffstat (limited to 'main/src/cgeo/geocaching/cgeotouch.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeotouch.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeotouch.java b/main/src/cgeo/geocaching/cgeotouch.java index 6a24a1a..5c62087 100644 --- a/main/src/cgeo/geocaching/cgeotouch.java +++ b/main/src/cgeo/geocaching/cgeotouch.java @@ -28,6 +28,8 @@ import java.util.List; import java.util.Map; public class cgeotouch extends cgLogForm { + private static final URI URI_GC_TRACK_LOG = cgBase.buildURI(false, "www.geocaching.com", "/track/log.aspx"); + private cgTrackable trackable = null; private List<Integer> types = new ArrayList<Integer>(); private ProgressDialog waitDialog = null; @@ -387,8 +389,7 @@ public class cgeotouch extends cgLogForm { return; } - final URI uri = cgBase.buildURI(false, "www.geocaching.com", "/track/log.aspx"); - final String page = base.request(uri, "GET", params, false, false, false).getData(); + final String page = base.request(URI_GC_TRACK_LOG, "GET", params, false, false, false).getData(); viewstates = cgBase.getViewstates(page); |