Skip to content
Snippets Groups Projects
Commit 68dc677b authored by Gaelle.Barris's avatar Gaelle.Barris
Browse files

Ajout logs

parent d05c118e
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
</parent>
<groupId>fr.gouv.siig.descartes</groupId>
<artifactId>services</artifactId>
<version>0.0.19</version>
<version>0.0.20</version>
<packaging>war</packaging>
<name>Descartes - Module D-WsMap</name>
<description>Services web de Descartes</description>
......
......@@ -256,12 +256,14 @@ public class BasicProxyService {
proxy = true;
LOGGER.debug("***** BasicProxyService hasProxy urlName: " + urlName);
try {
if (httpProxy.getUrlExceptions() != null) {
if (httpProxy.getUrlExceptions() != null && !httpProxy.getUrlExceptions().equalsIgnoreCase("")) {
LOGGER.debug("***** BasicProxyService hasProxy httpProxy.getUrlExceptions(): " + httpProxy.getUrlExceptions());
URL url = new URL(urlName);
String host = url.getHost();
LOGGER.debug("***** BasicProxyService hasProxy host: " + host);
String[] noProxyURLs = httpProxy.getUrlExceptions().split(";");
for (String noProxyURL : noProxyURLs) {
LOGGER.debug("***** BasicProxyService hasProxy noProxyURL: " + noProxyURL);
if (host.startsWith(noProxyURL) || host.endsWith(noProxyURL)) {
proxy = false;
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment