Mercurial > dive4elements > http-client
comparison src/main/java/org/dive4elements/artifacts/httpclient/utils/ArtifactProtocolUtils.java @ 125:e602a29f1dcc 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 28 Feb 2022 17:49:46 +0100 |
parents | 133281653904 |
children |
comparison
equal
deleted
inserted
replaced
124:7261c948425c | 125:e602a29f1dcc |
---|---|
9 | 9 |
10 import java.util.Map; | 10 import java.util.Map; |
11 | 11 |
12 import javax.xml.xpath.XPathConstants; | 12 import javax.xml.xpath.XPathConstants; |
13 | 13 |
14 import org.apache.log4j.Logger; | 14 import org.apache.logging.log4j.Logger; |
15 import org.apache.logging.log4j.LogManager; | |
15 | 16 |
16 import org.w3c.dom.Document; | 17 import org.w3c.dom.Document; |
17 import org.w3c.dom.Element; | 18 import org.w3c.dom.Element; |
18 import org.w3c.dom.NodeList; | 19 import org.w3c.dom.NodeList; |
19 | 20 |
21 import org.dive4elements.artifacts.httpclient.objects.ArtifactFactory; | 22 import org.dive4elements.artifacts.httpclient.objects.ArtifactFactory; |
22 | 23 |
23 public class ArtifactProtocolUtils { | 24 public class ArtifactProtocolUtils { |
24 | 25 |
25 private static final Logger logger = | 26 private static final Logger logger = |
26 Logger.getLogger(ArtifactProtocolUtils.class); | 27 LogManager.getLogger(ArtifactProtocolUtils.class); |
27 | 28 |
28 | 29 |
29 public static ArtifactFactory[] extractArtifactFactories(Document doc) { | 30 public static ArtifactFactory[] extractArtifactFactories(Document doc) { |
30 NodeList elements = (NodeList) XMLUtils.getXPath( | 31 NodeList elements = (NodeList) XMLUtils.getXPath( |
31 doc, | 32 doc, |