Package org.geotools.data.wfs.internal

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


    }

    @Test
    public void testGetRemoteFeatureType() throws Exception {

        DescribeFeatureTypeRequest req = mock(DescribeFeatureTypeRequest.class);
        when(wfs.createDescribeFeatureTypeRequest()).thenReturn(req);

        DescribeFeatureTypeResponse resp = mock(DescribeFeatureTypeResponse.class);
        when(wfs.issueRequest(same(req))).thenReturn(resp);
        when(resp.getFeatureType()).thenReturn(featureType2);
View Full Code Here


        synchronized (lockObj) {
            remoteFeatureType = remoteFeatureTypes.get(remoteTypeName);
            if (remoteFeatureType == null) {

                DescribeFeatureTypeRequest request = client.createDescribeFeatureTypeRequest();
                request.setTypeName(remoteTypeName);

                DescribeFeatureTypeResponse response = client.issueRequest(request);

                remoteFeatureType = response.getFeatureType();
                remoteFeatureTypes.put(remoteTypeName, remoteFeatureType);
View Full Code Here

TOP

Related Classes of org.geotools.data.wfs.internal.DescribeFeatureTypeRequest

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.