Examples of WFSResponse


Examples of org.geotools.data.wfs.internal.WFSResponse

        String outputFormat = request.getOutputFormat();

        HTTPResponse httpResponse = new TestHttpResponse(outputFormat, "UTF-8", contentUrl);

        WFSResponse response = request.createResponse(httpResponse);

        if (!(response instanceof GetFeatureResponse)) {
            return response;
        }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

            LOGGER.log(Level.FINER, e.getMessage(), e);
        }
       
        GetFeature request = new GetFeatureQueryAdapter(query, outputFormat, srsName, resultType);

        final WFSResponse response = sendGetFeatures(request);
        return response;
    }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

        }
        query = createNewQuery(query, supportedFilter, postFilter);

        final CoordinateReferenceSystem queryCrs = query.getCoordinateSystem();

        WFSResponse response = executeGetFeatures(query, transaction, ResultType.RESULTS);

        Object result = WFSExtensions.process(this, response, mappedURIs);

        GetFeatureParser parser;
        if (result instanceof WFSException) {
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

     * @throws IOException
     *             if a communication error occurs. If a server returns an exception report that's a
     *             normal response, no exception will be thrown here.
     */
    private WFSResponse sendGetFeatures(GetFeature request) throws IOException {
        final WFSResponse response;
        if (useHttpPostFor(GET_FEATURE)) {
            response = wfs.issueGetFeaturePOST(request);
        } else {
            response = wfs.issueGetFeatureGET(request);
        }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

        // WFSProtocol.splitFilter has simplified and validated my filters
        // so I create a new Query using these supported filters
        query = createNewQuery(query, filters[0], filters[1]);
       
        WFSResponse response = executeGetFeatures(query, Transaction.AUTO_COMMIT, ResultType.HITS);

        Object process = WFSExtensions.process(this, response, mappedURIs);
        if (!(process instanceof GetFeatureParser)) {
            LOGGER.info("GetFeature with resultType=hits resulted in " + process);
        }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

            throw new UnsupportedOperationException(
                    "The server does not support DescribeFeatureType for HTTP method GET");
        }

        URL url = getDescribeFeatureTypeURLGet(typeName, outputFormat);
        WFSResponse response = issueGetRequest(null, url, Collections.EMPTY_MAP);
        return response;
    }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

       
        if (request.getResultType() == ResultType.HITS) {
          getFeatureKvp.put("RESULTTYPE", ResultTypeType.HITS_LITERAL.getLiteral());
        }
       
        WFSResponse response = issueGetRequest(requestType, url, getFeatureKvp);

        return response;
    }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

        String prefix = fullName.getPrefix();
        String namespace = fullName.getNamespaceURI();
        if (!XMLConstants.DEFAULT_NS_PREFIX.equals(prefix)) {
            encoder.getNamespaces().declarePrefix(prefix, namespace);
        }
        WFSResponse response = issuePostRequest(serverRequest, postURL, encoder);

        return response;
    }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

        return url;
    }

    private WFSResponse issueGetRequest(EObject request, URL url, Map<String, String> kvp)
            throws IOException {
        WFSResponse response;
        final URL targetUrl = createUrl(url, kvp);
        HTTPResponse httpResponse = http.get(targetUrl);

        String responseCharset = httpResponse.getResponseCharset();
        Charset charset = responseCharset == null ? null : Charset.forName(responseCharset);
        String contentType = httpResponse.getContentType();
        InputStream responseStream = httpResponse.getResponseStream();
        response = new WFSResponse(targetUrl.toExternalForm(), request, charset, contentType, responseStream);
        return response;
    }
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.WFSResponse

        String responseCharset = httpResponse.getResponseCharset();
        Charset charset = responseCharset == null ? null : Charset.forName(responseCharset);
        String contentType = httpResponse.getContentType();
        InputStream responseStream = httpResponse.getResponseStream();

        WFSResponse response = new WFSResponse(url.toExternalForm(), request, charset, contentType,
                responseStream);
        return response;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.