comparison artifacts/src/main/java/org/dive4elements/river/exports/MapGenerator.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
63 protected Envelope maxExtent; 63 protected Envelope maxExtent;
64 protected Envelope initialExtent; 64 protected Envelope initialExtent;
65 65
66 protected String srid; 66 protected String srid;
67 67
68 protected String outName;
69
68 @Override 70 @Override
69 public void setup(Element config) { 71 public void setup(Element config) {
70 logger.debug("MapGenerator.setup"); 72 logger.debug("MapGenerator.setup");
71 } 73 }
72 74
73 @Override 75 @Override
74 public void init(Document request, OutputStream out, CallContext context) { 76 public void init(String outName, Document request, OutputStream out, CallContext context) {
75 logger.debug("MapGenerator.init"); 77 logger.debug("MapGenerator.init");
76 78
79 this.outName = outName;
77 this.request = request; 80 this.request = request;
78 this.out = out; 81 this.out = out;
79 this.context = context; 82 this.context = context;
80 83
81 this.layers = new ArrayList<WMSLayerFacet>(); 84 this.layers = new ArrayList<WMSLayerFacet>();

http://dive4elements.wald.intevation.org