Package org.geoserver.ows

Examples of org.geoserver.ows.Request


        DescribeFeatureTypeType dft = WfsFactory.eINSTANCE.createDescribeFeatureTypeType();
        dft.getTypeName().add(new QName("http://acme.org", "foo", "acme"));
        dft.getTypeName().add(new QName("http://acme.org", "bar", "acme"));
       
        Operation op = op("DescribeFeatureType", "WFS", "1.0.0", dft);
        callback.operationDispatched(new Request(), op);
       
        assertEquals("acme:foo", data.getLayers().get(0));
        assertEquals("acme:bar", data.getLayers().get(1));
    }
View Full Code Here


        q = WfsFactory.eINSTANCE.createQueryType();
        q.setTypeName(Arrays.asList(new QName("http://acme.org", "bar", "acme")));
        gf.getQuery().add(q);
       
        Operation op = op("GetFeature", "WFS", "1.0.0", gf);
        callback.operationDispatched(new Request(), op);
       
        assertEquals("acme:foo", data.getLayers().get(0));
        assertEquals("acme:bar", data.getLayers().get(1));
    }
View Full Code Here

        LockType l = WfsFactory.eINSTANCE.createLockType();
        l.setTypeName(new QName("http://acme.org", "foo", "acme"));
        lf.getLock().add(l);
       
        Operation op = op("LockFeature", "WFS", "1.0.0", lf);
        callback.operationDispatched(new Request(), op);
       
        assertEquals("acme:foo", data.getLayers().get(0));
    }
View Full Code Here

        DeleteElementType de = WfsFactory.eINSTANCE.createDeleteElementType();
        de.setTypeName(new QName("http://acme.org", "bar", "acme"));
        t.getDelete().add(de);
       
        Operation op = op("Transaction", "WFS", "1.0.0", t);
        callback.operationDispatched(new Request(), op);
       
        assertEquals("acme:foo", data.getLayers().get(0));
        assertEquals("acme:bar", data.getLayers().get(1));
    }
View Full Code Here

    @Test
    public void testWMSGetMap() throws Exception {
        GetMapRequest gm = new GetMapRequest();
       
        gm.setLayers(Arrays.asList(createMapLayer("foo", "acme")));
        callback.operationDispatched(new Request(), op("GetMap", "WMS", "1.1.1", gm));
       
        assertEquals("acme:foo", data.getLayers().get(0));
    }
View Full Code Here

    @Test
    public void testWMSGetFeatureInfo() throws Exception {
        GetFeatureInfoRequest gfi = new GetFeatureInfoRequest();
       
        gfi.setQueryLayers(Arrays.asList(createMapLayer("foo", "acme"), createMapLayer("bar", "acme")));
        callback.operationDispatched(new Request(), op("GetFeatureInfo", "WMS", "1.1.1", gfi));
       
        assertEquals("acme:foo", data.getLayers().get(0));
        assertEquals("acme:bar", data.getLayers().get(1));
    }
View Full Code Here

        FeatureType type = createMock(FeatureType.class);
        expect(type.getName()).andReturn(new NameImpl("http://acme.org", "foo")).anyTimes();
        replay(type);
       
        glg.setLayer(type);
        callback.operationDispatched(new Request(), op("GetFeatureInfo", "WMS", "1.1.1", glg));
   
        assertEquals("http://acme.org:foo", data.getLayers().get(0));
    }
View Full Code Here

    public void testWCS10DescribeCoverage() throws Exception {
        DescribeCoverageType dc = Wcs10Factory.eINSTANCE.createDescribeCoverageType();
        dc.getCoverage().add("acme:foo");
        dc.getCoverage().add("acme:bar");
       
        callback.operationDispatched(new Request(), op("DescribeCoverage", "WCS", "1.0.0", dc));
        assertEquals("acme:foo", data.getLayers().get(0));
        assertEquals("acme:bar", data.getLayers().get(1));
    }
View Full Code Here

   
    @Test
    public void testWCS10GetCoverage() throws Exception {
        GetCoverageType gc = Wcs10Factory.eINSTANCE.createGetCoverageType();
        gc.setSourceCoverage("acme:foo");
        callback.operationDispatched(new Request(), op("GetCoverage", "WCS", "1.0.0", gc));
       
        assertEquals("acme:foo", data.getLayers().get(0));
    }
View Full Code Here

    public void testWCS11DescribeCoverage() throws Exception {
        net.opengis.wcs11.DescribeCoverageType dc = Wcs11Factory.eINSTANCE.createDescribeCoverageType();
        dc.getIdentifier().add("acme:foo");
        dc.getIdentifier().add("acme:bar");
       
        callback.operationDispatched(new Request(), op("DescribeCoverage", "WCS", "1.1.0", dc));
        assertEquals("acme:foo", data.getLayers().get(0));
        assertEquals("acme:bar", data.getLayers().get(1));
    }
View Full Code Here

TOP

Related Classes of org.geoserver.ows.Request

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.