Package org.geoserver.ows

Examples of org.geoserver.ows.HttpErrorCodeException


        try {
            input = ((RepositoryItem) value).getContents();
            if (null != input) {
                IOUtils.copy(input, output);
            } else {
                throw new HttpErrorCodeException(404, "Repository item had no content");
            }
        } catch (IOException e) {
            throw new ServiceException("Failed to encode the repository item onto the output", e);
        } finally {
            IOUtils.closeQuietly(input);
View Full Code Here


            throw new ServiceException("Failure while pre-processing regionated features", t);
        }

        // This okay, just means the tile is empty
        if (featuresInTile.size() == 0) {
            throw new HttpErrorCodeException(204);
        } else {
            FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
            Set<FeatureId> ids = new HashSet<FeatureId>();
            for (String fid : featuresInTile) {
                ids.add(ff.featureId(fid));
View Full Code Here

            throw new ServiceException("Failure while pre-processing regionated features");
        }

        // This okay, just means the tile is empty
        if (featuresInTile.size() == 0) {
            throw new HttpErrorCodeException(204);
        } else {
            FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
            Set<FeatureId> ids = new HashSet<FeatureId>();
            for (String fid : featuresInTile) {
                ids.add(ff.featureId(fid));
View Full Code Here

TOP

Related Classes of org.geoserver.ows.HttpErrorCodeException

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.