Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/FileUploadService.java @ 9726:0a5239a1e46e 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Mar 2022 10:26:50 +0100 |
parents | e4606eae8ea5 |
children | 308a0d822d18 |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
19 import java.io.File; | 19 import java.io.File; |
20 import java.io.FileOutputStream; | 20 import java.io.FileOutputStream; |
21 import java.io.IOException; | 21 import java.io.IOException; |
22 | 22 |
23 import org.apache.commons.codec.binary.Base64; | 23 import org.apache.commons.codec.binary.Base64; |
24 import org.apache.log4j.Logger; | 24 import org.apache.logging.log4j.Logger; |
25 import org.apache.logging.log4j.LogManager; | |
25 import org.w3c.dom.Document; | 26 import org.w3c.dom.Document; |
26 import org.w3c.dom.Element; | 27 import org.w3c.dom.Element; |
27 | 28 |
28 /** | 29 /** |
29 * Service that receives XML-packed Shapefile bundles from the client. | 30 * Service that receives XML-packed Shapefile bundles from the client. |
30 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 31 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
31 */ | 32 */ |
32 public class FileUploadService extends D4EService { | 33 public class FileUploadService extends D4EService { |
33 | 34 |
34 /** The log used in this service.*/ | 35 /** The log used in this service.*/ |
35 private static Logger log = Logger.getLogger(FileUploadService.class); | 36 private static Logger log = LogManager.getLogger(FileUploadService.class); |
36 | 37 |
37 /** XPath that points to the artifact uuid.*/ | 38 /** XPath that points to the artifact uuid.*/ |
38 public static final String XPATH_ARTIFACT_UUID = | 39 public static final String XPATH_ARTIFACT_UUID = |
39 "/upload/artifact-uuid/text()"; | 40 "/upload/artifact-uuid/text()"; |
40 | 41 |