Package it.geosolutions.geoserver.rest.decoder

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


   */
  @Test
  public void testGetNamespaces() {
        if(!enabled()) return;

        RESTNamespaceList result = reader.getNamespaces();
        List<String> names = reader.getNamespaceNames();
    assertNotNull(result);
//        assertEquals(7, result.size()); // value in default gs installation
    assertNotNull(names);
        assertEquals(names.size(), result.size()); // value in default gs installation

        System.out.println("Namespaces:" + result.size());
        System.out.print("Namespaces:" );
        int namesIdx = 0;
        for (RESTNamespaceList.RESTShortNamespace ns : result) {
            assertEquals("namespace mismatch", names.get(namesIdx++), ns.getName());
      System.out.print(ns.getName() + " " );
View Full Code Here


     * <BR>
     * This is a shortcut call: These info could be retrieved using {@link #getNamespaces getNamespaces}
     * @return the list of the names of all Namespaces.
     */
    public List<String> getNamespaceNames() {
        RESTNamespaceList list = getNamespaces();
        List<String> names = new ArrayList<String>(list.size());
        for (RESTNamespaceList.RESTShortNamespace item : list) {
            names.add(item.getName());
        }
        return names;
    }
View Full Code Here

TOP

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

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.