Package it.geosolutions.geoserver.rest.decoder

Examples of it.geosolutions.geoserver.rest.decoder.RESTWorkspaceList$RESTShortWorkspace


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

    RESTWorkspaceList wslist = reader.getWorkspaces();
    assertNotNull(wslist);
//        assertEquals(7, wslist.size()); // value in default gs installation

        System.out.println("Workspaces: " + wslist.size());
        int dsnum = 0;
    for (RESTWorkspaceList.RESTShortWorkspace ws : wslist) {
            System.out.println("Getting DSlist for WS " + ws.getName() + "..." );
      RESTDataStoreList result = reader.getDatastores(ws.getName());
      assertNotNull(result);
View Full Code Here


  @Test
  public void testGetWSDSNames() {
        if(!enabled())
            return;

    RESTWorkspaceList wslist = reader.getWorkspaces();
        assertNotNull(wslist);
//        assertEquals(7, wslist.size()); // value in default gs installation

    List<String> wsnames = reader.getWorkspaceNames();
        assertNotNull(wsnames);
View Full Code Here

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

    RESTWorkspaceList wslist = reader.getWorkspaces();
    assertNotNull(wslist);
//        assertEquals(7, wslist.size()); // value in default gs installation

        System.out.println("Workspaces:" + wslist.size());
        System.out.print("Workspaces:");
    for (RESTWorkspaceList.RESTShortWorkspace ws : wslist) {
      System.out.print(ws.getName() + " ");
    }
        System.out.println();

        assertEquals(wslist.size(), reader.getWorkspaceNames().size());
  }
View Full Code Here

     * <BR>
     * This is a shortcut call: These info could be retrieved using {@link #getWorkspaces getWorkspaces}
     * @return the list of the names of all Workspaces or an empty list.
     */
    public List<String> getWorkspaceNames() {
        RESTWorkspaceList list = getWorkspaces();
        if(list==null){
          return Collections.emptyList();
        }
        List<String> names = new ArrayList<String>(list.size());
        for (RESTWorkspaceList.RESTShortWorkspace item : list) {
            names.add(item.getName());
        }
        return names;
    }
View Full Code Here

TOP

Related Classes of it.geosolutions.geoserver.rest.decoder.RESTWorkspaceList$RESTShortWorkspace

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.