diff --git a/Jenkinsfile b/Jenkinsfile
index 3d4433ca79..e152278da9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -6,8 +6,8 @@ pipeline {
disableConcurrentBuilds()
}
tools {
- maven 'maven-3.6'
- jdk 'adoptopenjdk-jdk8'
+ maven 'maven-3.8'
+ jdk 'adoptopenjdk-jdk11'
}
environment {
MAVEN_OPTS='-Djava.awt.headless=true -Xmx4096m'
diff --git a/checkstyle.xml b/checkstyle.xml
index 1dc2b6c259..7d4320b51e 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -23,9 +23,6 @@
-
-
-
diff --git a/deegree-client/deegree-jsf-core/pom.xml b/deegree-client/deegree-jsf-core/pom.xml
index 672f4f829a..152e69fc75 100644
--- a/deegree-client/deegree-jsf-core/pom.xml
+++ b/deegree-client/deegree-jsf-core/pom.xml
@@ -12,7 +12,7 @@
org.deegree
deegree-client
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
diff --git a/deegree-client/deegree-wps-webclient/pom.xml b/deegree-client/deegree-wps-webclient/pom.xml
index fe0cbedef8..9eebabad2b 100644
--- a/deegree-client/deegree-wps-webclient/pom.xml
+++ b/deegree-client/deegree-wps-webclient/pom.xml
@@ -12,10 +12,14 @@
org.deegree
deegree-client
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
+
+ jakarta.annotation
+ jakarta.annotation-api
+
org.deegree
deegree-protocol-commons
diff --git a/deegree-client/deegree-wpsprinter-webclient/pom.xml b/deegree-client/deegree-wpsprinter-webclient/pom.xml
index 64505f2920..41da1d873c 100644
--- a/deegree-client/deegree-wpsprinter-webclient/pom.xml
+++ b/deegree-client/deegree-wpsprinter-webclient/pom.xml
@@ -12,7 +12,7 @@
org.deegree
deegree-client
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
diff --git a/deegree-client/pom.xml b/deegree-client/pom.xml
index 10f7b549c5..bd28972cf6 100644
--- a/deegree-client/pom.xml
+++ b/deegree-client/pom.xml
@@ -9,7 +9,7 @@
org.deegree
deegree
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
diff --git a/deegree-core/deegree-connectionprovider-datasource/pom.xml b/deegree-core/deegree-connectionprovider-datasource/pom.xml
index 4f083abcf4..b432343544 100644
--- a/deegree-core/deegree-connectionprovider-datasource/pom.xml
+++ b/deegree-core/deegree-connectionprovider-datasource/pom.xml
@@ -12,7 +12,7 @@
org.deegree
deegree-core
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderBuilder.java b/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderBuilder.java
index 7660cf056e..5786bd7504 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderBuilder.java
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderBuilder.java
@@ -1,11 +1,13 @@
/*----------------------------------------------------------------------------
This file is part of deegree, http://deegree.org/
- Copyright (C) 2001-2014 by:
+ Copyright (C) 2001-2022 by:
- Department of Geography, University of Bonn -
and
- lat/lon GmbH -
and
- Occam Labs UG (haftungsbeschränkt) -
+ and
+ - grit graphische Informationstechnik Beratungsgesellschaft mbH -
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
@@ -35,6 +37,11 @@
Occam Labs UG (haftungsbeschränkt)
Godesberger Allee 139, 53175 Bonn
Germany
+
+ grit graphische Informationstechnik Beratungsgesellschaft mbH
+ Landwehrstr. 143, 59368 Werne
+ Germany
+ http://www.grit.de/
e-mail: info@deegree.org
----------------------------------------------------------------------------*/
@@ -49,6 +56,7 @@ Occam Labs UG (haftungsbeschränkt)
import javax.sql.DataSource;
import org.deegree.db.ConnectionProvider;
+import org.deegree.db.dialect.SqlDialectProvider;
import org.deegree.db.dialect.SqlDialects;
import org.deegree.sqldialect.SQLDialect;
import org.deegree.workspace.ResourceBuilder;
@@ -60,6 +68,7 @@ Occam Labs UG (haftungsbeschränkt)
* {@link ResourceBuilder} for the {@link DataSourceConnectionProvider}.
*
* @author Markus Schneider
+ * @author Stephan Reichhelm
*
* @since 3.4
*/
@@ -85,7 +94,21 @@ public ConnectionProvider build() {
final DataSource ds = initializeDataSourceInstance();
final Method destroyMethod = getDestroyMethod( ds, config.getDataSource().getDestroyMethod() );
final Connection conn = checkConnectivity( ds );
- final SQLDialect dialect = SqlDialects.lookupSqlDialect( conn, workspace.getModuleClassLoader() );
+ final SQLDialect dialect;
+ if ( config.getDialectProvider() != null ) {
+ String dialectProviderCls = config.getDialectProvider().getJavaClass();
+ try {
+ Class> clazz = workspace.getModuleClassLoader().loadClass( dialectProviderCls );
+ SqlDialectProvider prov = clazz.asSubclass( SqlDialectProvider.class ).newInstance();
+ dialect = prov.createDialect( conn );
+ } catch ( Exception ex ) {
+ final String msg = "Configured SQL dialect provider '" + dialectProviderCls + "' failed to initialize: "
+ + ex.getLocalizedMessage();
+ throw new ResourceException( msg, ex );
+ }
+ } else {
+ dialect = SqlDialects.lookupSqlDialect( conn, workspace.getModuleClassLoader() );
+ }
close( conn );
return new DataSourceConnectionProvider( metadata, ds, dialect, destroyMethod );
}
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderProvider.java b/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderProvider.java
index 7d4fab05b6..cdc315de0d 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderProvider.java
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/java/org/deegree/db/datasource/DataSourceConnectionProviderProvider.java
@@ -59,7 +59,7 @@ public class DataSourceConnectionProviderProvider extends ConnectionProviderProv
static final String CONFIG_NAMESPACE = "http://www.deegree.org/connectionprovider/datasource";
- static final URL SCHEMA_URL = DataSourceConnectionProviderProvider.class.getResource( "/META-INF/schemas/connectionprovider/datasource/3.4.0/datasource.xsd" );
+ static final URL SCHEMA_URL = DataSourceConnectionProviderProvider.class.getResource( "/META-INF/schemas/connectionprovider/datasource/datasource.xsd" );
@Override
public String getNamespace() {
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/datasource.xsd b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/datasource.xsd
similarity index 76%
rename from deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/datasource.xsd
rename to deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/datasource.xsd
index 83ff935fd2..ca1034f10f 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/datasource.xsd
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/datasource.xsd
@@ -18,8 +18,8 @@
-
-
+
+
@@ -31,11 +31,16 @@
-
+
+
+
+
+
+
-
+
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_mssql.xml b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_mssql.xml
similarity index 91%
rename from deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_mssql.xml
rename to deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_mssql.xml
index 97ec533d22..545387836f 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_mssql.xml
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_mssql.xml
@@ -1,6 +1,6 @@
+ xsi:schemaLocation="http://www.deegree.org/connectionprovider/datasource http://schemas.deegree.org/3.5/jdbc/datasource/datasource.xsd">
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_oracle.xml b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_oracle.xml
similarity index 91%
rename from deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_oracle.xml
rename to deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_oracle.xml
index 305700e9c7..ac3e3bb57a 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_oracle.xml
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_oracle.xml
@@ -1,6 +1,6 @@
+ xsi:schemaLocation="http://www.deegree.org/connectionprovider/datasource http://schemas.deegree.org/3.5/jdbc/datasource/datasource.xsd">
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_postgres.xml b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_postgres.xml
similarity index 91%
rename from deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_postgres.xml
rename to deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_postgres.xml
index 18176a7252..30865af1d0 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_dbcp_postgres.xml
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_dbcp_postgres.xml
@@ -1,6 +1,6 @@
+ xsi:schemaLocation="http://www.deegree.org/connectionprovider/datasource http://schemas.deegree.org/3.5/jdbc/datasource/datasource.xsd">
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_jndi.xml b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_jndi.xml
similarity index 87%
rename from deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_jndi.xml
rename to deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_jndi.xml
index 3d4565da74..660f4b9bde 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_jndi.xml
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_jndi.xml
@@ -1,6 +1,6 @@
+ xsi:schemaLocation="http://www.deegree.org/connectionprovider/datasource http://schemas.deegree.org/3.5/jdbc/datasource/datasource.xsd">
diff --git a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_ucp.xml b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_ucp.xml
similarity index 92%
rename from deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_ucp.xml
rename to deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_ucp.xml
index 567ef9c926..f3a0eccea4 100644
--- a/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/3.4.0/example_ucp.xml
+++ b/deegree-core/deegree-connectionprovider-datasource/src/main/resources/META-INF/schemas/connectionprovider/datasource/example_ucp.xml
@@ -1,6 +1,6 @@
+ xsi:schemaLocation="http://www.deegree.org/connectionprovider/datasource http://schemas.deegree.org/3.5/jdbc/datasource/datasource.xsd">
diff --git a/deegree-core/deegree-core-3d/pom.xml b/deegree-core/deegree-core-3d/pom.xml
index d844b0af35..a9a20b9c2a 100644
--- a/deegree-core/deegree-core-3d/pom.xml
+++ b/deegree-core/deegree-core-3d/pom.xml
@@ -12,7 +12,7 @@
org.deegree
deegree-core
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
diff --git a/deegree-core/deegree-core-3d/src/main/java/org/deegree/rendering/r3d/multiresolution/persistence/BatchedMTFileStoreProvider.java b/deegree-core/deegree-core-3d/src/main/java/org/deegree/rendering/r3d/multiresolution/persistence/BatchedMTFileStoreProvider.java
index 93bbced70f..13aa6bd79e 100644
--- a/deegree-core/deegree-core-3d/src/main/java/org/deegree/rendering/r3d/multiresolution/persistence/BatchedMTFileStoreProvider.java
+++ b/deegree-core/deegree-core-3d/src/main/java/org/deegree/rendering/r3d/multiresolution/persistence/BatchedMTFileStoreProvider.java
@@ -53,7 +53,7 @@ public class BatchedMTFileStoreProvider extends BatchedMTStoreProvider {
private static final String CONFIG_NS = "http://www.deegree.org/datasource/3d/batchedmt/file";
- private static final URL CONFIG_SCHEMA = BatchedMTFileStoreProvider.class.getResource( "/META-INF/schemas/datasource/3d/batchedmt/3.4.0/file.xsd" );
+ private static final URL CONFIG_SCHEMA = BatchedMTFileStoreProvider.class.getResource( "/META-INF/schemas/datasource/3d/batchedmt/file.xsd" );
public String getNamespace() {
return CONFIG_NS;
diff --git a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/3.4.0/example.xml b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/example.xml
similarity index 82%
rename from deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/3.4.0/example.xml
rename to deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/example.xml
index fc2624e39c..3d4501c7c5 100644
--- a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/3.4.0/example.xml
+++ b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/example.xml
@@ -1,7 +1,7 @@
+ xsi:schemaLocation="http://www.deegree.org/datasource/3d/batchedmt/file http://schemas.deegree.org/3.5/datasource/3d/batchedmt/file.xsd">
../../../data/batchedmt
500048576
\ No newline at end of file
diff --git a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/3.4.0/file.xsd b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/file.xsd
similarity index 81%
rename from deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/3.4.0/file.xsd
rename to deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/file.xsd
index 5e92162a53..ce2fc9f50a 100644
--- a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/3.4.0/file.xsd
+++ b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/batchedmt/file.xsd
@@ -24,14 +24,7 @@
-
-
-
-
-
-
-
-
+
diff --git a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/file.xsd b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/file.xsd
similarity index 83%
rename from deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/file.xsd
rename to deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/file.xsd
index f4281ea991..a9e63ef734 100644
--- a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/file.xsd
+++ b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/file.xsd
@@ -25,14 +25,7 @@
-
-
-
-
-
-
-
-
+
diff --git a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/file_example.xml b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/file_example.xml
similarity index 84%
rename from deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/file_example.xml
rename to deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/file_example.xml
index dc782ee106..4ca9ded1a8 100644
--- a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/file_example.xml
+++ b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/file_example.xml
@@ -1,7 +1,7 @@
+ xsi:schemaLocation="http://www.deegree.org/datasource/3d/renderable/file http://schemas.deegree.org/3.5/datasource/3d/renderable/file.xsd">
../../../data/renderable/buildings/objects
../../../data/renderable/buildings/prototypes
\ No newline at end of file
diff --git a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/sql.xsd b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/sql.xsd
similarity index 83%
rename from deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/sql.xsd
rename to deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/sql.xsd
index 08c6a3f62f..93fbdc82e4 100644
--- a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/sql.xsd
+++ b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/sql.xsd
@@ -26,14 +26,7 @@
-
-
-
-
-
-
-
-
+
diff --git a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/sql_example.xml b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/sql_example.xml
similarity index 81%
rename from deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/sql_example.xml
rename to deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/sql_example.xml
index a583f5c1ff..07e3433b92 100644
--- a/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/3.4.0/sql_example.xml
+++ b/deegree-core/deegree-core-3d/src/main/resources/META-INF/schemas/datasource/3d/renderable/sql_example.xml
@@ -1,7 +1,7 @@
+ xsi:schemaLocation="http://www.deegree.org/datasource/3d/renderable/sql http://schemas.deegree.org/3.5/datasource/3d/renderable/sql.xsd">
conn1
table
\ No newline at end of file
diff --git a/deegree-core/deegree-core-annotations/pom.xml b/deegree-core/deegree-core-annotations/pom.xml
index 6c35989301..7f6438e2ea 100644
--- a/deegree-core/deegree-core-annotations/pom.xml
+++ b/deegree-core/deegree-core-annotations/pom.xml
@@ -12,7 +12,7 @@
org.deegree
deegree-core
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
diff --git a/deegree-core/deegree-core-base/pom.xml b/deegree-core/deegree-core-base/pom.xml
index 6bca69973b..1a5c34a029 100644
--- a/deegree-core/deegree-core-base/pom.xml
+++ b/deegree-core/deegree-core-base/pom.xml
@@ -12,7 +12,7 @@
org.deegree
deegree-core
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
diff --git a/deegree-core/deegree-core-commons/pom.xml b/deegree-core/deegree-core-commons/pom.xml
index 21b49c1d06..76be221042 100644
--- a/deegree-core/deegree-core-commons/pom.xml
+++ b/deegree-core/deegree-core-commons/pom.xml
@@ -12,7 +12,7 @@
org.deegree
deegree-core
- 3.4.32-SNAPSHOT
+ 3.5.0-SNAPSHOT
@@ -25,6 +25,14 @@
+
+ jakarta.xml.bind
+ jakarta.xml.bind-api
+
+
+ com.sun.xml.bind
+ jaxb-impl
+
org.deegree
deegree-core-workspace
@@ -94,10 +102,6 @@
org.deegree
deegree-ogcschemas
-
- javax.mail
- mail
-
org.slf4j
slf4j-api
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/ows/metadata/DatasetMetadata.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/ows/metadata/DatasetMetadata.java
index 590c4a70f5..75e8b17171 100644
--- a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/ows/metadata/DatasetMetadata.java
+++ b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/ows/metadata/DatasetMetadata.java
@@ -67,6 +67,8 @@ public class DatasetMetadata extends Description {
private final Attribution attribution;
+ private final List extendedDescriptions;
+
/**
* Creates a new {@link DatasetMetadata} instance.
*
@@ -79,7 +81,7 @@ public class DatasetMetadata extends Description {
* @param keywords
* keywords, may be null
(no keywords)
* @param metadataUrls
- * urls of metadata records, may be null
(no metadata records))
+ * urls of metadata records, may be null
(no metadata records)
* @param externalIds
* external identifiers, may be null
(no external identifiers)
* @param dataUrls
@@ -88,12 +90,14 @@ public class DatasetMetadata extends Description {
* links to the list of the features (used in a layer), may be null
(no links)
* @param attribution
* indicates the provider of a layer, may be null
(no attribution)
+ * @param extendedDescriptions
+ * extended descriptions of a layer, may be null
(no extendedDescriptions)
*/
public DatasetMetadata( final QName name, final List titles, final List abstracts,
final List, CodeType>> keywords,
final List metadataUrls, final List externalIds,
final List dataUrls, final List featureListUrls,
- final Attribution attribution ) {
+ final Attribution attribution, final List extendedDescriptions ) {
super( name.getLocalPart(), titles, abstracts, keywords );
this.name = name;
this.metadataUrls = metadataUrls;
@@ -101,6 +105,7 @@ public DatasetMetadata( final QName name, final List titles, fin
this.dataUrls = dataUrls;
this.featureListUrls = featureListUrls;
this.attribution = attribution;
+ this.extendedDescriptions = extendedDescriptions;
}
/**
@@ -157,4 +162,13 @@ public Attribution getAttribution() {
return attribution;
}
+ /**
+ * Returns the extended descriptions.
+ *
+ * @return extended descriptions, may be null
(no extended descriptions)
+ */
+ public List getExtendedDescriptions() {
+ return extendedDescriptions;
+ }
+
}
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/ows/metadata/ExtendedDescription.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/ows/metadata/ExtendedDescription.java
new file mode 100644
index 0000000000..bdc25fa66b
--- /dev/null
+++ b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/ows/metadata/ExtendedDescription.java
@@ -0,0 +1,77 @@
+/*----------------------------------------------------------------------------
+ This file is part of deegree, http://deegree.org/
+ Copyright (C) 2001-2022 by:
+ - Department of Geography, University of Bonn -
+ and
+ - lat/lon GmbH -
+
+ This library is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License as published by the Free
+ Software Foundation; either version 2.1 of the License, or (at your option)
+ any later version.
+ This library is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ details.
+ You should have received a copy of the GNU Lesser General Public License
+ along with this library; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+ Contact information:
+
+ lat/lon GmbH
+ Aennchenstr. 19, 53177 Bonn
+ Germany
+ http://lat-lon.de/
+
+ Department of Geography, University of Bonn
+ Prof. Dr. Klaus Greve
+ Postfach 1147, 53001 Bonn
+ Germany
+ http://www.geographie.uni-bonn.de/deegree/
+
+ e-mail: info@deegree.org
+ ----------------------------------------------------------------------------*/
+package org.deegree.commons.ows.metadata;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+/**
+ * @author Lyn Goltz
+ */
+public class ExtendedDescription {
+
+ private String name;
+
+ private QName type;
+
+ private String metadata;
+
+ private List values;
+
+ public ExtendedDescription(String name, QName type, String metadata, List values) {
+ this.name = name;
+ this.type = type;
+ this.metadata = metadata;
+ this.values = values;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public QName getType() {
+ return type;
+ }
+
+ public String getMetadata() {
+ return metadata;
+ }
+
+ public List getValues() {
+ return values;
+ }
+
+}
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/proxy/ProxySettings.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/proxy/ProxySettings.java
index c5df6ef72a..e8ad5d104f 100644
--- a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/proxy/ProxySettings.java
+++ b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/proxy/ProxySettings.java
@@ -45,6 +45,7 @@
import java.net.PasswordAuthentication;
import java.net.URL;
import java.net.URLConnection;
+import java.security.GeneralSecurityException;
import java.util.Properties;
import org.apache.commons.codec.binary.Base64;
@@ -73,35 +74,45 @@ public final class ProxySettings implements Initializable {
private static final String CONFIG_JAXB_PACKAGE = "org.deegree.commons.proxy.jaxb";
- private static final URL CONFIG_SCHEMA = ProxySettings.class.getResource( "/META-INF/schemas/proxy/3.4.0/proxy.xsd" );
+ private static final URL CONFIG_SCHEMA = ProxySettings.class.getResource( "/META-INF/schemas/proxy/proxy.xsd" );
private static final String PROXY_HOST = "proxyHost";
private static final String HTTP_PROXY_HOST = "http.proxyHost";
+
+ private static final String HTTPS_PROXY_HOST = "https.proxyHost";
private static final String FTP_PROXY_HOST = "ftp.proxyHost";
private static final String PROXY_PORT = "proxyPort";
private static final String HTTP_PROXY_PORT = "http.proxyPort";
+
+ private static final String HTTPS_PROXY_PORT = "https.proxyPort";
private static final String FTP_PROXY_PORT = "ftp.proxyPort";
private static final String PROXY_USER = "proxyUser";
private static final String HTTP_PROXY_USER = "http.proxyUser";
+
+ private static final String HTTPS_PROXY_USER = "https.proxyUser";
private static final String FTP_PROXY_USER = "ftp.proxyUser";
private static final String PROXY_PASSWORD = "proxyPassword";
private static final String HTTP_PROXY_PASSWORD = "http.proxyPassword";
+
+ private static final String HTTPS_PROXY_PASSWORD = "https.proxyPassword";
private static final String FTP_PROXY_PASSWORD = "ftp.proxyPassword";
private static final String NON_PROXY_HOSTS = "nonProxyHosts";
private static final String HTTP_NON_PROXY_HOSTS = "http.nonProxyHosts";
+
+ private static final String HTTPS_NON_PROXY_HOSTS = "https.nonProxyHosts";
private static final String FTP_NON_PROXY_HOSTS = "ftp.nonProxyHosts";
@@ -138,6 +149,8 @@ public void init( Workspace workspace ) {
workspace );
if ( proxyConfig != null ) {
setupProxyParameters( proxyConfig );
+ LOG.info( "Current proxy settings (if present) will be overwritten: {}",
+ proxyConfig.isOverrideSystemSettings() ? "yes" : "no" );
}
} catch ( Exception e ) {
String msg = "Could not unmarshall proxy configuration: " + e.getMessage();
@@ -157,52 +170,83 @@ public synchronized static void setupProxyParameters( ProxyConfiguration config
String proxyHost = config.getProxyHost();
String httpProxyHost = config.getHttpProxyHost();
+ String httpsProxyHost = config.getHttpsProxyHost();
String ftpProxyHost = config.getFtpProxyHost();
int proxyPort = config.getProxyPort() != null ? config.getProxyPort().intValue() : -1;
int httpProxyPort = config.getHttpProxyPort() != null ? config.getHttpProxyPort().intValue() : -1;
+ int httpsProxyPort = config.getHttpsProxyPort() != null ? config.getHttpsProxyPort().intValue() : -1;
int ftpProxyPort = config.getFtpProxyPort() != null ? config.getFtpProxyPort().intValue() : -1;
String proxyUser = config.getProxyUser();
String httpProxyUser = config.getHttpProxyUser();
+ String httpsProxyUser = config.getHttpsProxyUser();
String ftpProxyUser = config.getFtpProxyUser();
String proxyPassword = config.getProxyPassword();
String httpProxyPassword = config.getHttpProxyPassword();
+ String httpsProxyPassword = config.getHttpsProxyPassword();
String ftpProxyPassword = config.getFtpProxyPassword();
String nonProxyHosts = config.getNonProxyHosts();
String httpNonProxyHosts = config.getHttpNonProxyHosts();
+ String httpsNonProxyHosts = config.getHttpsNonProxyHosts();
String ftpNonProxyHosts = config.getFtpNonProxyHosts();
- setupProxyParameters( proxyHost, httpProxyHost, ftpProxyHost, proxyPort, httpProxyPort, ftpProxyPort,
- proxyUser, httpProxyUser, ftpProxyUser, proxyPassword, httpProxyPassword,
- ftpProxyPassword, nonProxyHosts, httpNonProxyHosts, ftpNonProxyHosts,
+ setupProxyParameters( proxyHost, httpProxyHost, httpsProxyHost, ftpProxyHost, proxyPort, httpProxyPort,
+ httpsProxyPort, ftpProxyPort, proxyUser, httpProxyUser, httpsProxyUser, ftpProxyUser,
+ proxyPassword, httpProxyPassword, httpsProxyPassword, ftpProxyPassword, nonProxyHosts,
+ httpNonProxyHosts, httpsNonProxyHosts, ftpNonProxyHosts,
config.isOverrideSystemSettings() );
}
+
+ /**
+ * Sets/augments the VM's proxy configuration.
+ *
+ * @see ProxySettings#setupProxyParameters(String, String, String, String, int, int, int, int, String, String, String, String, String, String, String, String, String, String, String, String, boolean)
+ */
+ @Deprecated
+ public synchronized static void setupProxyParameters( String proxyHost, String httpProxyHost, String ftpProxyHost,
+ int proxyPort, int httpProxyPort, int ftpProxyPort,
+ String proxyUser, String httpProxyUser, String ftpProxyUser,
+ String proxyPassword, String httpProxyPassword,
+ String ftpProxyPassword, String nonProxyHosts,
+ String httpNonProxyHosts, String ftpNonProxyHosts,
+ boolean override ) {
+ LOG.warn( "Using HTTP proxy settings for HTTPS proxy" );
+ setupProxyParameters( proxyHost, httpProxyHost, httpProxyHost, ftpProxyHost, proxyPort, httpProxyPort,
+ httpProxyPort, ftpProxyPort, proxyUser, httpProxyUser, httpProxyUser, ftpProxyUser,
+ proxyPassword, httpProxyPassword, httpProxyPassword, ftpProxyPassword, nonProxyHosts,
+ httpNonProxyHosts, httpNonProxyHosts, ftpNonProxyHosts, override );
+ }
/**
* Sets/augments the VM's proxy configuration.
*
* @param proxyHost
* @param httpProxyHost
+ * @param httpsProxyHost
* @param ftpProxyHost
* @param proxyPort
* @param httpProxyPort
+ * @param httpsProxyHost
* @param ftpProxyPort
* @param proxyUser
* @param httpProxyUser
+ * @param httpsProxyUser
* @param ftpProxyUser
* @param proxyPassword
* @param httpProxyPassword
+ * @param httpsProxyPassword
* @param ftpProxyPassword
* @param nonProxyHosts
* @param httpNonProxyHosts
+ * @param httpsNonProxyHosts
* @param ftpNonProxyHosts
* @param override
*/
- public synchronized static void setupProxyParameters( String proxyHost, String httpProxyHost, String ftpProxyHost,
- int proxyPort, int httpProxyPort, int ftpProxyPort,
- String proxyUser, String httpProxyUser, String ftpProxyUser,
- String proxyPassword, String httpProxyPassword,
+ public synchronized static void setupProxyParameters( String proxyHost, String httpProxyHost, String httpsProxyHost, String ftpProxyHost,
+ int proxyPort, int httpProxyPort, int httpsProxyPort, int ftpProxyPort,
+ String proxyUser, String httpProxyUser, String httpsProxyUser, String ftpProxyUser,
+ String proxyPassword, String httpProxyPassword, String httpsProxyPassword,
String ftpProxyPassword, String nonProxyHosts,
- String httpNonProxyHosts, String ftpNonProxyHosts,
+ String httpNonProxyHosts, String httpsNonProxyHosts, String ftpNonProxyHosts,
boolean override ) {
Properties props = System.getProperties();
@@ -212,6 +256,9 @@ public synchronized static void setupProxyParameters( String proxyHost, String h
if ( override || props.get( HTTP_PROXY_HOST ) == null ) {
setProperty( HTTP_PROXY_HOST, httpProxyHost );
}
+ if ( override || props.get( HTTPS_PROXY_HOST ) == null ) {
+ setProperty( HTTPS_PROXY_HOST, httpsProxyHost );
+ }
if ( override || props.get( FTP_PROXY_HOST ) == null ) {
setProperty( FTP_PROXY_HOST, ftpProxyHost );
}
@@ -229,6 +276,13 @@ public synchronized static void setupProxyParameters( String proxyHost, String h
setProperty( HTTP_PROXY_PORT, null );
}
}
+ if ( override || props.get( HTTPS_PROXY_PORT ) == null ) {
+ if ( httpProxyPort != -1 ) {
+ setProperty( HTTPS_PROXY_PORT, "" + httpsProxyPort );
+ } else {
+ setProperty( HTTPS_PROXY_PORT, null );
+ }
+ }
if ( override || props.get( FTP_PROXY_PORT ) == null ) {
if ( ftpProxyPort != -1 ) {
setProperty( FTP_PROXY_PORT, "" + ftpProxyPort );
@@ -243,6 +297,9 @@ public synchronized static void setupProxyParameters( String proxyHost, String h
if ( override || props.get( HTTP_PROXY_USER ) == null ) {
setProperty( HTTP_PROXY_USER, httpProxyUser );
}
+ if ( override || props.get( HTTPS_PROXY_USER ) == null ) {
+ setProperty( HTTPS_PROXY_USER, httpsProxyUser );
+ }
if ( override || props.get( FTP_PROXY_USER ) == null ) {
setProperty( FTP_PROXY_USER, ftpProxyUser );
}
@@ -253,6 +310,9 @@ public synchronized static void setupProxyParameters( String proxyHost, String h
if ( override || props.get( HTTP_PROXY_PASSWORD ) == null ) {
setProperty( HTTP_PROXY_PASSWORD, httpProxyPassword );
}
+ if ( override || props.get( HTTPS_PROXY_PASSWORD ) == null ) {
+ setProperty( HTTPS_PROXY_PASSWORD, httpsProxyPassword );
+ }
if ( override || props.get( FTP_PROXY_PASSWORD ) == null ) {
setProperty( FTP_PROXY_PASSWORD, ftpProxyPassword );
}
@@ -263,9 +323,13 @@ public synchronized static void setupProxyParameters( String proxyHost, String h
if ( override || props.get( HTTP_NON_PROXY_HOSTS ) == null ) {
setProperty( HTTP_NON_PROXY_HOSTS, httpNonProxyHosts );
}
+ if ( override || props.get( HTTPS_NON_PROXY_HOSTS ) == null ) {
+ setProperty( HTTPS_NON_PROXY_HOSTS, httpsNonProxyHosts );
+ }
if ( override || props.get( FTP_NON_PROXY_HOSTS ) == null ) {
setProperty( FTP_NON_PROXY_HOSTS, ftpNonProxyHosts );
}
+
if ( override || props.get( PROXY_SET ) == null ) {
setProperty( PROXY_SET, "true" );
}
@@ -353,6 +417,14 @@ public static String getHttpProxyHost( boolean considerBaseConfig ) {
}
return result;
}
+
+ public static String getHttpsProxyHost( boolean considerBaseConfig ) {
+ String result = System.getProperty( HTTPS_PROXY_HOST );
+ if ( considerBaseConfig && result == null ) {
+ result = getProxyHost();
+ }
+ return result;
+ }
public static String getFtpProxyHost( boolean considerBaseConfig ) {
String result = System.getProperty( FTP_PROXY_HOST );
@@ -373,6 +445,14 @@ public static String getHttpProxyPort( boolean considerBaseConfig ) {
}
return result;
}
+
+ public static String getHttpsProxyPort( boolean considerBaseConfig ) {
+ String result = System.getProperty( HTTPS_PROXY_PORT );
+ if ( considerBaseConfig && result == null ) {
+ result = getProxyPort();
+ }
+ return result;
+ }
public static String getFtpProxyPort( boolean considerBaseConfig ) {
String result = System.getProperty( FTP_PROXY_PORT );
@@ -393,6 +473,14 @@ public static String getHttpProxyUser( boolean considerBaseConfig ) {
}
return result;
}
+
+ public static String getHttpsProxyUser( boolean considerBaseConfig ) {
+ String result = System.getProperty( HTTPS_PROXY_USER );
+ if ( considerBaseConfig && result == null ) {
+ result = getProxyUser();
+ }
+ return result;
+ }
public static String getFtpProxyUser( boolean considerBaseConfig ) {
String result = System.getProperty( FTP_PROXY_USER );
@@ -413,6 +501,14 @@ public static String getHttpProxyPassword( boolean considerBaseConfig ) {
}
return result;
}
+
+ public static String getHttpsProxyPassword( boolean considerBaseConfig ) {
+ String result = System.getProperty( HTTPS_PROXY_PASSWORD );
+ if ( considerBaseConfig && result == null ) {
+ result = getProxyPassword();
+ }
+ return result;
+ }
public static String getFtpProxyPassword( boolean considerBaseConfig ) {
String result = System.getProperty( FTP_PROXY_PASSWORD );
@@ -433,6 +529,14 @@ public static String getHttpNonProxyHosts( boolean considerBaseConfig ) {
}
return result;
}
+
+ public static String getHttpsNonProxyHosts( boolean considerBaseConfig ) {
+ String result = System.getProperty( HTTPS_NON_PROXY_HOSTS );
+ if ( considerBaseConfig && result == null ) {
+ result = getNonProxyHosts();
+ }
+ return result;
+ }
public static String getFtpNonProxyHosts( boolean considerBaseConfig ) {
String result = System.getProperty( FTP_NON_PROXY_HOSTS );
@@ -443,16 +547,19 @@ public static String getFtpNonProxyHosts( boolean considerBaseConfig ) {
}
public static void logProxyConfiguration( Logger log ) {
- log.info( "- proxyHost=" + getProxyHost() + ", http.proxyHost=" + getHttpProxyHost( false )
- + ", ftp.proxyHost=" + getFtpProxyHost( false ) );
- log.info( "- proxyPort=" + getProxyPort() + ", http.proxyPort=" + getHttpProxyPort( false )
- + ", ftp.proxyPort=" + getFtpProxyPort( false ) );
- log.info( "- proxyUser=" + getProxyUser() + ", http.proxyUser=" + getHttpProxyUser( false )
- + ", ftp.proxyUser=" + getFtpProxyUser( false ) );
- log.info( "- proxyPassword=" + getProxyPassword() + ", http.proxyPassword=" + getHttpProxyPassword( false )
- + ", ftp.proxyPassword=" + getFtpProxyPassword( false ) );
- log.info( "- nonProxyHosts=" + getNonProxyHosts() + ", http.nonProxyHosts=" + getHttpNonProxyHosts( false )
- + ", ftp.nonProxyHosts=" + getFtpNonProxyHosts( false ) );
+
+ log.info( "- proxyHost={}, http.proxyHost={}, https.proxyHost={}, ftp.proxyHost={}", getProxyHost(),
+ getHttpProxyHost( false ), getHttpsProxyHost( false ), getFtpProxyHost( false ) );
+ log.info( "- proxyPort={}, http.proxyPort={}, https.proxyPort={}, ftp.proxyPort={}", getProxyPort(),
+ getHttpProxyPort( false ), getHttpsProxyPort( false ), getFtpProxyPort( false ) );
+ log.info( "- proxyUser={}, http.proxyUser={}, https.proxyUser={}, ftp.proxyUser={}", getProxyUser(),
+ getHttpProxyUser( false ), getHttpsProxyUser( false ), getFtpProxyUser( false ) );
+ log.info( "- proxyPassword={}, http.proxyPassword={}, https.proxyPassword={}, ftp.proxyPassword={}",
+ getProxyPassword(), getHttpProxyPassword( false ), getHttpsProxyPassword( false ),
+ getFtpProxyPassword( false ) );
+ log.info( "- nonProxyHosts={}, http.nonProxyHosts={}, https.nonProxyHosts={},ftp.nonProxyHosts={}",
+ getNonProxyHosts(), getHttpNonProxyHosts( false ), getHttpsNonProxyHosts( false ),
+ getFtpNonProxyHosts( false ) );
}
private void setupAuthenticator() {
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/TunableParameter.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/TunableParameter.java
index b154de1934..4bec8d471d 100644
--- a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/TunableParameter.java
+++ b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/TunableParameter.java
@@ -67,6 +67,8 @@ public class TunableParameter {
private static final Map CONFIG_STR = new HashMap<>();
private static final Map CONFIG_NUM = new HashMap<>();
+
+ private static final Map CONFIG_BOOL = new HashMap<>();
public static String get( String key, String defaultValue ) {
boolean has = CONFIG_STR.containsKey( key );
@@ -88,7 +90,32 @@ public static String get( String key, String defaultValue ) {
return val;
}
}
+
+ public static boolean get( String key, boolean defaultValue ) {
+ return get( key, Boolean.valueOf( defaultValue ) ).booleanValue();
+ }
+
+ public static Boolean get( String key, Boolean defaultValue ) {
+ boolean has = CONFIG_BOOL.containsKey( key );
+ Boolean val = CONFIG_BOOL.get( key );
+ if ( !has ) {
+ val = getFromJndi( key );
+
+ if ( val == null ) {
+ val = getBooleanFromSystem( key );
+ }
+
+ CONFIG_BOOL.put( key, val );
+ }
+
+ if ( val == null ) {
+ return defaultValue;
+ } else {
+ return val;
+ }
+ }
+
public static double get( String key, double defaultValue ) {
return get( key, Double.valueOf( defaultValue ) ).doubleValue();
}
@@ -112,7 +139,7 @@ public static short get( String key, short defaultValue ) {
public static byte get( String key, byte defaultValue ) {
return get( key, Byte.valueOf( defaultValue ) ).byteValue();
}
-
+
private static Number get( String key, Number defaultValue ) {
boolean has = CONFIG_NUM.containsKey( key );
Number val = CONFIG_NUM.get( key );
@@ -146,6 +173,19 @@ private static Number getFromSystem( String key ) {
}
return null;
}
+
+ private static Boolean getBooleanFromSystem( String key ) {
+ try {
+ String str = System.getProperty( key );
+ if ( str != null ) {
+ return Boolean.valueOf( str );
+ }
+ } catch ( Exception ex ) {
+ LOG.warn( "Could not parse tuneable '{}' as boolean: {}", key, ex.getMessage() );
+ LOG.trace( "Exception", ex );
+ }
+ return null;
+ }
private static T getFromJndi( String key ) {
try {
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/net/HttpUtils.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/net/HttpUtils.java
index f105e58fdc..cfb40ea0cf 100644
--- a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/net/HttpUtils.java
+++ b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/net/HttpUtils.java
@@ -428,7 +428,8 @@ public static T get( Worker worker, String url, Map heade
if ( !u.valid() ) {
return null;
}
- if ( !u.getURL().getProtocol().equalsIgnoreCase( "http" ) ) {
+ final String protocol = u.getURL().getProtocol();
+ if ( !( "http".equalsIgnoreCase( protocol ) || "https".equalsIgnoreCase( protocol ) ) ) {
return worker.work( u.getURL().openStream() );
}
DefaultHttpClient client = enableProxyUsage( new DefaultHttpClient(), u );
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/jaxb/JAXBUtils.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/jaxb/JAXBUtils.java
index e4acfe812a..af110fa31c 100644
--- a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/jaxb/JAXBUtils.java
+++ b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/jaxb/JAXBUtils.java
@@ -146,9 +146,9 @@ private static Schema getSchemaForUrl( URL schemaFile ) {
try {
StreamSource origSchema = new StreamSource( new DURL( schemaFile.toExternalForm() ).openStream(),
schemaFile.toExternalForm() );
- URL descUrl = JAXBUtils.class.getResource( "/META-INF/schemas/commons/description/3.4.0/description.xsd" );
- URL spatUrl = JAXBUtils.class.getResource( "/META-INF/schemas/commons/spatialmetadata/3.4.0/spatialmetadata.xsd" );
- URL layUrl = JAXBUtils.class.getResource( "/META-INF/schemas/layers/base/3.4.0/base.xsd" );
+ URL descUrl = JAXBUtils.class.getResource( "/META-INF/schemas/commons/description/description.xsd" );
+ URL spatUrl = JAXBUtils.class.getResource( "/META-INF/schemas/commons/spatialmetadata/spatialmetadata.xsd" );
+ URL layUrl = JAXBUtils.class.getResource( "/META-INF/schemas/layers/base/base.xsd" );
StreamSource desc = new StreamSource( new DURL( descUrl.toExternalForm() ).openStream(),
descUrl.toExternalForm() );
List
org.mockito
mockito-core
diff --git a/deegree-core/deegree-core-layer/src/main/java/org/deegree/layer/config/ConfigUtils.java b/deegree-core/deegree-core-layer/src/main/java/org/deegree/layer/config/ConfigUtils.java
index 1d5dd8f654..bb40b97b82 100644
--- a/deegree-core/deegree-core-layer/src/main/java/org/deegree/layer/config/ConfigUtils.java
+++ b/deegree-core/deegree-core-layer/src/main/java/org/deegree/layer/config/ConfigUtils.java
@@ -127,6 +127,7 @@ private static Pair