Package org.jdesktop.wonderland.tools.wfs

Examples of org.jdesktop.wonderland.tools.wfs.InvalidWFSException


                break;
        }
       
        /* If we found none, throw an exception */
        if (wfsdir == null) {
            throw new InvalidWFSException("WFS URI has no valid filesystems: " + url.toString());
        }
       
        /* The path to the valid WFS directory inside of the JAR file */
        this.wfsPath = pathPart + "/" + wfsdir;
       
View Full Code Here


        /*
         * Make sure the File name conforms to the '<name>-wfs' format. If not,
         * throw an InvalidWFSException.
         */
        if (this.root.getName().endsWith(WFS.WFS_DIRECTORY_SUFFIX) == false) {
            throw new InvalidWFSException("WFS URI has an invalid name: " + uri.toString());
        }

        /* Check to see if it exists and it is a directory */
        if (create == false && (this.root.exists() == false || this.root.isDirectory() == false)) {
            throw new InvalidWFSException("WFS URI is not a directory: " + root.getCanonicalPath());
        }
        else if (create == true && this.root.exists() == true) {
            /* If we wish to create it, but it already exists */
            throw new IOException("WFS URI already exists: " + uri.toString());
        }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.tools.wfs.InvalidWFSException

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.