Package org.geoserver.wms

Examples of org.geoserver.wms.WMSInfoImpl


        ret.setSrsNameStyle(info.getSrsNameStyle());
        return ret;
    }

    private ServiceInfoImpl translateWMS(WMSInfoImpl wms) {
        WMSInfoImpl ret = new WMSInfoImpl();
        copySI(wms, ret);

        ret.setMaxRequestMemory(wms.getMaxRequestMemory());
        ret.setWatermark(wms.getWatermark());
        ret.setInterpolation(wms.getInterpolation());
        for (String srs : wms.getSRS()) {
            ret.getSRS().add(srs);
        }
        ret.setMaxBuffer(wms.getMaxBuffer());
        ret.setMaxRenderingTime(wms.getMaxRenderingTime());
        ret.setMaxRenderingErrors(wms.getMaxRenderingErrors());

        return ret;
    }
View Full Code Here


        wcs.setExceptionFormats(exceptionFormats);
        config.add(wcs);
    }

    public static void createWMS(GeoServerInfo geoserver, GeoServer config) {
        WMSInfoImpl wms = new WMSInfoImpl();
        wms.setName("wms");
        wms.setId("wms");
        wms.setTitle("Default WMS");
        wms.setEnabled(true);
        WatermarkInfo wm = new WatermarkInfoImpl();
        wm.setEnabled(false);
        wm.setPosition(WatermarkInfo.Position.BOT_RIGHT);
        wms.setWatermark(wm);
        wms.setGeoServer(config);
        config.add(wms);
    }
View Full Code Here

        wfs.getGML().put(WFSInfo.Version.V_11, gml);
        wfs.setGeoServer(serviceCatalog);

        this.serviceCatalog.add(wfs);

        WMSInfoImpl wms = new WMSInfoImpl();
        wms.setName("wms");
        wms.setId("wms");
        wms.setTitle("Test WMS");
        wms.setEnabled(true);
        WatermarkInfo wm = new WatermarkInfoImpl();
        wm.setEnabled(false);
        wm.setPosition(WatermarkInfo.Position.BOT_RIGHT);
        wms.setWatermark(wm);
        wms.setGeoServer(serviceCatalog);

        this.serviceCatalog.add(wms);

        WCSInfoImpl wcs = new WCSInfoImpl();
        wcs.setId("wcs");
View Full Code Here

        geosInfo = new GeoServerInfoImpl(geosConfig);
        geosInfo.setContact(new ContactInfoImpl());
        geosConfig.setGlobal(geosInfo);

        wmsInfo = new WMSInfoImpl();
        geosConfig.add(wmsInfo);

        catalog = new CatalogImpl();
        geosConfig.setCatalog(catalog);
View Full Code Here

        catalog.add(coverageStoreInfo);
        catalog.add(coverageInfo);
        catalog.add(coverageLayerInfo);

        geoServerImpl.add(new WMSInfoImpl());
        WMS wms = new WMS(geoServerImpl);
        request = new DescribeLayerRequest(wms);
        request.setBaseUrl("http://localhost:8080/geoserver");
        request.setVersion("1.1.1");
    }
View Full Code Here

  private Map<String, String> params;

  protected void setUp() throws Exception {
    geoServerImpl = new GeoServerImpl();
    geoServerImpl.add(new WMSInfoImpl());
    wms = new WMS(geoServerImpl);
    request = new MockHttpServletRequest();
    params = new HashMap<String, String>();
  }
View Full Code Here

    private Map<String, String> params;

    protected void setUp() throws Exception {
        geoServerImpl = new GeoServerImpl();
        geoServerImpl.add(new WMSInfoImpl());
        wms = new WMS(geoServerImpl);
        params = new HashMap<String, String>();
    }
View Full Code Here

        catalog.add(coverageStoreInfo);
        catalog.add(coverageInfo);
        catalog.add(coverageLayerInfo);

        geoServerImpl.add(new WMSInfoImpl());
        WMS wms = new WMS(geoServerImpl);
        request = new DescribeLayerRequest();
        request.setBaseUrl("http://localhost:8080/geoserver");
        request.setVersion(WMS.VERSION_1_1_1.toString());
    }
View Full Code Here

        geosInfo = new GeoServerInfoImpl(geosConfig);
        geosInfo.setContact(new ContactInfoImpl());
        geosConfig.setGlobal(geosInfo);

        wmsInfo = new WMSInfoImpl();
        geosConfig.add(wmsInfo);

        catalog = new CatalogImpl();
        geosConfig.setCatalog(catalog);
View Full Code Here

    @Test
    public void testModifyService(){
       
        // Create a service to modify
        WMSInfo service = new WMSInfoImpl();
        ((WMSInfoImpl) service).setId("WMS-TEST");
        service.setName("WMS");
        service.setMaintainer("Foo");


        service = database.add(service);
       
        assertEquals(service.getMaintainer(), "Foo");
       
        service.setMaintainer("Bar");
        testSaved(service);

    }
View Full Code Here

TOP

Related Classes of org.geoserver.wms.WMSInfoImpl

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.