Package org.jdesktop.wonderland.web.wfs

Examples of org.jdesktop.wonderland.web.wfs.WFSSnapshot


                   
        }                               
        WFSRootInfo info = new WFSRootInfo();
        if(current instanceof WFSSnapshot) {
            info.setIsRoot(false);
            WFSSnapshot snapshot = (WFSSnapshot)current;
            info.setDate(snapshot.getTimestamp().toString());
            info.setDescription(snapshot.getDescription());
        }
        info.setPath(current.getRootPath());
        info.setRootName(current.getName());
       
        return Response.ok(info).build();
View Full Code Here


        if (action == null) {
            action = "view";
        }

        WFSRoot root = getRoot(request);
        WFSSnapshot snapshot = null;
        if (root instanceof WFSSnapshot) {
            snapshot = (WFSSnapshot) root;
        }

        SnapshotResult result = null;
View Full Code Here

            DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
            name = df.format(new Date());
        }

        // Create the WFS check return value is not null (error if so)
        WFSSnapshot snapshot = manager.createWFSSnapshot(name);
        if (snapshot == null) {
            logger.warning("[WFS] Unable to create snapshot " + name);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
       
        // Form the root path of the wfs: "snapshots/<date>/world-wfs"
        WorldRoot worldRoot = new WorldRoot(snapshot.getRootPath());
       
        // Formulate the response and return the world root object
        ResponseBuilder rb = Response.ok(worldRoot);
        return rb.build();
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.web.wfs.WFSSnapshot

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.