[PATCH 4 of 8] issue971: Prepare client to include encoding in download url

Wald Commits scm-commit at wald.intevation.org
Wed Sep 25 12:16:57 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1380104401 -7200
# Node ID 4c99b8783e1d59610b6d22e123b5345815f16917
# Parent  fd8b27cdf498ac250eebe847d8481f0ad5b16afa
issue971: Prepare client to include encoding in download url.

diff -r fd8b27cdf498 -r 4c99b8783e1d gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartOutputTab.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartOutputTab.java	Wed Sep 25 11:48:54 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartOutputTab.java	Wed Sep 25 12:20:01 2013 +0200
@@ -652,6 +652,18 @@
     }
 
 
+    /** Get link to export image in given dimension, format and encoding. */
+    public String getExportUrl(
+        int width, int height, String format, String encoding) {
+        String url = getImgUrl(width, height);
+        url += "&format=" + format;
+        url += "&export=true";
+        url += "&encoding=" + encoding;
+
+        return url;
+    }
+
+
     /** Get link to export image in given dimension and format. */
     public String getExportUrl(int width, int height, String format) {
         String url = getImgUrl(width, height);


More information about the Dive4elements-commits mailing list