comparison artifacts/src/main/java/org/dive4elements/river/exports/ShapeExporter.java @ 7077:0a337f0005c2 generator-refactoring

Extended init() of OutGenerator to take name of the out to serve.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 20 Sep 2013 16:34:09 +0200
parents 5c6fd2c010dd
children ada424214b02
comparison
equal deleted inserted replaced
7074:a2abd87c0d3b 7077:0a337f0005c2
28 private OutputStream out; 28 private OutputStream out;
29 private CallContext context; 29 private CallContext context;
30 private D4EArtifactCollection collection; 30 private D4EArtifactCollection collection;
31 private String facet; 31 private String facet;
32 private File dir; 32 private File dir;
33 private String outName;
33 34
34 @Override 35 @Override
35 public void setup(Element config) { 36 public void setup(Element config) {
36 logger.debug("ShapeExporter.setup"); 37 logger.debug("ShapeExporter.setup");
37 } 38 }
38 39
39 @Override 40 @Override
40 public void init(Document request, OutputStream out, CallContext context) { 41 public void init(String outName, Document request, OutputStream out, CallContext context) {
42 this.outName = outName;
41 this.request = request; 43 this.request = request;
42 this.out = out; 44 this.out = out;
43 this.context = context; 45 this.context = context;
44 } 46 }
45 47

http://dive4elements.wald.intevation.org