Package org.geoserver.wfs

Examples of org.geoserver.wfs.WFSInfoImpl


        ret.setGMLPrefixing(wcs.isGMLPrefixing());
        return ret;
    }

    private ServiceInfoImpl translateWFS(WFSInfoImpl wfs) {
        WFSInfoImpl ret = new WFSInfoImpl();
        copySI(wfs, ret);
        ret.setFeatureBounding(wfs.isFeatureBounding());
        ret.setMaxFeatures(wfs.getMaxFeatures());
        ret.setServiceLevel(wfs.getServiceLevel());

        for (Version version : wfs.getGML().keySet()) {
            GMLInfo info = wfs.getGML().get(version);
            GMLInfoImplHb infohb = translateGMLInfo(info);
            ret.getGML().put(version, infohb);
        }

        return ret;
    }
View Full Code Here


        createWMS(geoserver, serviceCatalog);
        createWCS(geoserver, serviceCatalog);
    }

    public static void createWFS(GeoServerInfo geoserver, GeoServer config) {
        WFSInfoImpl wfs = new WFSInfoImpl();
        wfs.setId("wfs");
        wfs.setName("wfs");
        wfs.setTitle("Default WFS");
        wfs.setEnabled(true);
        wfs.setServiceLevel(WFSInfo.ServiceLevel.COMPLETE);
        // gml2
        GMLInfo gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.NORMAL);
        wfs.getGML().put(WFSInfo.Version.V_10, gml);
        // gml3
        gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.URN);
        wfs.getGML().put(WFSInfo.Version.V_11, gml);
        wfs.setGeoServer(config);
        config.add(wfs);
    }
View Full Code Here

        return geoserver;
    }

    private void createDefaultServices(GeoServerInfo geoserver) {

        WFSInfoImpl wfs = new WFSInfoImpl();
        wfs.setId("wfs");
        wfs.setName("wfs");
        wfs.setTitle("Test WFS");
        wfs.setEnabled(true);

        wfs.setServiceLevel(WFSInfo.ServiceLevel.COMPLETE);

        // gml2
        GMLInfo gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.NORMAL);
        wfs.getGML().put(WFSInfo.Version.V_10, gml);

        // gml3
        gml = new GMLInfoImplHb();
        gml.setSrsNameStyle(SrsNameStyle.URN);
        wfs.getGML().put(WFSInfo.Version.V_11, gml);
        wfs.setGeoServer(serviceCatalog);

        this.serviceCatalog.add(wfs);

        WMSInfoImpl wms = new WMSInfoImpl();
        wms.setName("wms");
View Full Code Here

        expect(catalog.getResourcePool()).andReturn(resourcePool).anyTimes();
        expect(catalog.getFeatureTypes()).andReturn(Collections.EMPTY_LIST).anyTimes();
        replay(catalog);
       
        GeoServer gs = createNiceMock(GeoServer.class);
        expect(gs.getService(WFSInfo.class)).andReturn(new WFSInfoImpl()).anyTimes();
        expect(gs.getCatalog()).andReturn(catalog).anyTimes();
        replay(gs);
       
        FeatureTypeSchemaBuilder.GML3 schemaBuilder = new FeatureTypeSchemaBuilder.GML3(gs);
        WFS wfs = new WFS(schemaBuilder);
View Full Code Here

        expect(catalog.getResourcePool()).andReturn(resourcePool).anyTimes();
        expect(catalog.getFeatureTypes()).andReturn(Collections.EMPTY_LIST).anyTimes();
        replay(catalog);
       
        GeoServer gs = createNiceMock(GeoServer.class);
        expect(gs.getService(WFSInfo.class)).andReturn(new WFSInfoImpl()).anyTimes();
        expect(gs.getCatalog()).andReturn(catalog).anyTimes();
        replay(gs);
       
        FeatureTypeSchemaBuilder.GML3 schemaBuilder = new FeatureTypeSchemaBuilder.GML3(gs);
        WFS wfs = new WFS(schemaBuilder);
View Full Code Here

TOP

Related Classes of org.geoserver.wfs.WFSInfoImpl

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.