changeset 7137:4c99b8783e1d

issue971: Prepare client to include encoding in download url.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 25 Sep 2013 12:20:01 +0200
parents fd8b27cdf498
children 2098ac94bebc
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartOutputTab.java
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org