Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/AbstractExporter.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 |
---|---|
64 public static final char DEFAULT_CSV_SEPARATOR = ','; | 64 public static final char DEFAULT_CSV_SEPARATOR = ','; |
65 | 65 |
66 /** XPath that points to the desired export facet. */ | 66 /** XPath that points to the desired export facet. */ |
67 public static final String XPATH_FACET = "/art:action/@art:type"; | 67 public static final String XPATH_FACET = "/art:action/@art:type"; |
68 | 68 |
69 /** The out name to serve. */ | |
70 protected String outName; | |
71 | |
69 /** The document of the incoming out() request. */ | 72 /** The document of the incoming out() request. */ |
70 protected Document request; | 73 protected Document request; |
71 | 74 |
72 /** The output stream where the data should be written to. */ | 75 /** The output stream where the data should be written to. */ |
73 protected OutputStream out; | 76 protected OutputStream out; |
120 logger.debug("AbstractExporter.setup"); | 123 logger.debug("AbstractExporter.setup"); |
121 } | 124 } |
122 | 125 |
123 | 126 |
124 @Override | 127 @Override |
125 public void init(Document request, OutputStream out, CallContext context) { | 128 public void init( |
129 String outName, | |
130 Document request, | |
131 OutputStream out, | |
132 CallContext context | |
133 ) { | |
126 logger.debug("AbstractExporter.init"); | 134 logger.debug("AbstractExporter.init"); |
127 | 135 |
136 this.outName = outName; | |
128 this.request = request; | 137 this.request = request; |
129 this.out = out; | 138 this.out = out; |
130 this.context = context; | 139 this.context = context; |
131 } | 140 } |
132 | 141 |