diff artifacts/src/main/java/org/dive4elements/river/exports/OutputHelper.java @ 8225:724081af301c

Pass request document to the context injectors.
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 08 Sep 2014 16:14:43 +0200
parents 0bec47e5a951
children c87c87544cc6
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/OutputHelper.java	Mon Sep 08 16:06:50 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/OutputHelper.java	Mon Sep 08 16:14:43 2014 +0200
@@ -86,9 +86,9 @@
         String       outName,
         String       facet,
         Document     attributes,
-        CallContext  context)
-    throws IOException
-    {
+        CallContext  context,
+        Document     request
+    ) throws IOException {
         boolean debug = log.isDebugEnabled();
 
         if (debug) {
@@ -132,7 +132,7 @@
                 }
 
                 if (ci != null) {
-                    ci.injectContext(context, dataProviders.get(i).getArtifact(), null);
+                    ci.injectContext(context, dataProviders.get(i).getArtifact(), request);
                 }
 
                 if (outName.equals("sq_overview")) {

http://dive4elements.wald.intevation.org