Package com.boundlessgeo.geoserver.api.exceptions

Examples of com.boundlessgeo.geoserver.api.exceptions.BadRequestException


    JSONObj create(@RequestBody JSONObj obj) {
        Catalog cat = geoServer.getCatalog();

        String wsName = obj.str("name");
        if (wsName == null) {
            throw new BadRequestException("Workspace must have a name");
        }

        String nsUri = obj.str("uri");
        if (nsUri == null) {
            nsUri = "http://" + wsName;
View Full Code Here


        WorkspaceInfo ws = findWorkspace(wsName, cat);

        // grab the uploaded file
        Iterator<FileItem> files = doFileUpload(request);
        if (!files.hasNext()) {
            throw new BadRequestException("Request must contain a single file");
        }

        FileItem file = files.next();

        Path zip = Files.createTempFile(null, null);
View Full Code Here

TOP

Related Classes of com.boundlessgeo.geoserver.api.exceptions.BadRequestException

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.