sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] branch geoapi-4.0 updated: Add a LegacyNamespaces.CSW constant for http://www.opengis.net/cat/csw/2.0.2
Date Wed, 10 Oct 2018 14:20:45 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git


The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
     new c8ec989  Add a LegacyNamespaces.CSW constant for http://www.opengis.net/cat/csw/2.0.2
c8ec989 is described below

commit c8ec989aaacfd3552e6be7d85f2f197b31e0298e
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Wed Oct 10 16:20:11 2018 +0200

    Add a LegacyNamespaces.CSW constant for http://www.opengis.net/cat/csw/2.0.2
---
 .../src/main/java/org/apache/sis/internal/xml/LegacyNamespaces.java | 6 ++++++
 .../java/org/apache/sis/internal/storage/xml/StoreProvider.java     | 1 +
 2 files changed, 7 insertions(+)

diff --git a/core/sis-metadata/src/main/java/org/apache/sis/internal/xml/LegacyNamespaces.java
b/core/sis-metadata/src/main/java/org/apache/sis/internal/xml/LegacyNamespaces.java
index 643fba1..3eb1bfe 100644
--- a/core/sis-metadata/src/main/java/org/apache/sis/internal/xml/LegacyNamespaces.java
+++ b/core/sis-metadata/src/main/java/org/apache/sis/internal/xml/LegacyNamespaces.java
@@ -111,6 +111,12 @@ public final class LegacyNamespaces {
     public static final String GTS = "http://www.isotc211.org/2005/gts";
 
     /**
+     * The <code>{@value}</code> URL.
+     * The usual prefix for this namespace is {@code "csw"}.
+     */
+    public static final String CSW = "http://www.opengis.net/cat/csw/2.0.2";
+
+    /**
      * Do not allow instantiation of this class.
      */
     private LegacyNamespaces() {
diff --git a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/xml/StoreProvider.java
b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/xml/StoreProvider.java
index 1f60be0..714c25d 100644
--- a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/xml/StoreProvider.java
+++ b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/xml/StoreProvider.java
@@ -49,6 +49,7 @@ public final class StoreProvider extends AbstractProvider {
         super(null);
         mimeForNameSpaces.put(      Namespaces.GML,       "application/gml+xml");
         mimeForNameSpaces.put(      Namespaces.CSW,       "application/vnd.ogc.csw_xml");
+        mimeForNameSpaces.put(LegacyNamespaces.CSW,       "application/vnd.ogc.csw_xml");
         mimeForNameSpaces.put(LegacyNamespaces.GMD,       "application/vnd.iso.19139+xml");
         mimeForNameSpaces.put(LegacyNamespaces.GMI,       "application/vnd.iso.19139+xml");
         mimeForNameSpaces.put(LegacyNamespaces.GMI_ALIAS, "application/vnd.iso.19139+xml");


Mime
View raw message