Package it.geosolutions.geoserver.rest.decoder

Examples of it.geosolutions.geoserver.rest.decoder.RESTNamespace


        // Test read namespace list
    String nsName = reader.getNamespaceNames().get(0);
    assertEquals(nsName, "NS1");
   
    // Read a namespace
    RESTNamespace ns = reader.getNamespace(nsName);
    assertEquals(ns.getPrefix(), "NS1");
    assertEquals(ns.getURI(), URI.create("http://a.example.com"));
   
    // Update namespaces (change URI)
    assertTrue(publisher.updateNamespace("NS1", URI.create("http://b.example.com")));
    assertFalse(publisher.updateNamespace("NS2", URI.create("http://a.example.com"))); // Nonexistent
   
View Full Code Here

TOP

Related Classes of it.geosolutions.geoserver.rest.decoder.RESTNamespace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.