aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/GeopeitusConnector.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/connector/GeopeitusConnector.java')
-rw-r--r--main/src/cgeo/geocaching/connector/GeopeitusConnector.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/connector/GeopeitusConnector.java b/main/src/cgeo/geocaching/connector/GeopeitusConnector.java
index fa19d80..6ef91db 100644
--- a/main/src/cgeo/geocaching/connector/GeopeitusConnector.java
+++ b/main/src/cgeo/geocaching/connector/GeopeitusConnector.java
@@ -13,7 +13,7 @@ public class GeopeitusConnector extends AbstractConnector {
@Override
public String getCacheUrl(final cgCache cache) {
- return "http://" + getHost() + "/aare/" + StringUtils.stripStart(cache.getGeocode().substring(2), "0");
+ return getCacheUrlPrefix() + StringUtils.stripStart(cache.getGeocode().substring(2), "0");
}
@Override
@@ -25,4 +25,9 @@ public class GeopeitusConnector extends AbstractConnector {
public boolean canHandle(String geocode) {
return StringUtils.startsWith(geocode, "GE") && isNumericId(geocode.substring(2));
}
+
+ @Override
+ protected String getCacheUrlPrefix() {
+ return "http://" + getHost() + "/aare/";
+ }
}