Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ATExporter.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 |
---|---|
43 public static final String DEFAULT_ENCODING = "UTF-8"; | 43 public static final String DEFAULT_ENCODING = "UTF-8"; |
44 | 44 |
45 protected WQ data; | 45 protected WQ data; |
46 protected CallContext context; | 46 protected CallContext context; |
47 protected OutputStream out; | 47 protected OutputStream out; |
48 protected D4EArtifact master; | 48 protected D4EArtifact master; |
49 protected String outName; | |
49 | 50 |
50 protected D4EArtifactCollection collection; | 51 protected D4EArtifactCollection collection; |
51 | 52 |
52 | 53 |
53 public ATExporter() { | 54 public ATExporter() { |
57 public void setup(Element config) { | 58 public void setup(Element config) { |
58 logger.debug("ATExporter.setup"); | 59 logger.debug("ATExporter.setup"); |
59 } | 60 } |
60 | 61 |
61 @Override | 62 @Override |
62 public void init(Document request, OutputStream out, CallContext context) { | 63 public void init(String outName, Document request, OutputStream out, CallContext context) { |
64 this.outName = outName; | |
63 this.context = context; | 65 this.context = context; |
64 this.out = out; | 66 this.out = out; |
65 } | 67 } |
66 | 68 |
67 | 69 |