Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ReportGenerator.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 |
---|---|
35 private static Logger logger = Logger.getLogger(ReportGenerator.class); | 35 private static Logger logger = Logger.getLogger(ReportGenerator.class); |
36 | 36 |
37 protected Document result; | 37 protected Document result; |
38 protected OutputStream out; | 38 protected OutputStream out; |
39 protected CallContext context; | 39 protected CallContext context; |
40 protected String outName; | |
40 | 41 |
41 public ReportGenerator() { | 42 public ReportGenerator() { |
42 } | 43 } |
43 | 44 |
44 @Override | 45 @Override |
45 public void setup(Element config) { | 46 public void setup(Element config) { |
46 logger.debug("ReportGenerator.setup"); | 47 logger.debug("ReportGenerator.setup"); |
47 } | 48 } |
48 | 49 |
49 @Override | 50 @Override |
50 public void init(Document request, OutputStream out, CallContext context) { | 51 public void init(String outName, Document request, OutputStream out, CallContext context) { |
51 logger.debug("init"); | 52 logger.debug("init"); |
53 this.outName = outName; | |
52 this.out = out; | 54 this.out = out; |
53 this.context = context; | 55 this.context = context; |
54 result = null; | 56 result = null; |
55 } | 57 } |
56 | 58 |