Examples of GeoServerInfoImpl


Examples of org.geoserver.config.impl.GeoServerInfoImpl

        catalog.setResourcePool(resourcePool);

        mockGeoServer = new GeoServerImpl();
        mockGeoServer.setCatalog(catalog);
       
        GeoServerInfoImpl geoserverInfo = new GeoServerInfoImpl(mockGeoServer);
        geoserverInfo.setId("geoserver");
        mockGeoServer.setGlobal(geoserverInfo);

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

Examples of org.geoserver.config.impl.GeoServerInfoImpl

     * modify their state before running the assertions
     */
    protected void setUp() throws Exception {
        geosConfig = new GeoServerImpl();

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

        wmsInfo = new WMSInfoImpl();
        geosConfig.add(wmsInfo);
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

        filter = null;
    }

    protected GeoServer getMockGeoServer(final String proxyBaseUrl) {
        GeoServerImpl config = new GeoServerImpl();
        GeoServerInfoImpl geoserver = new GeoServerInfoImpl(config);
        geoserver.setProxyBaseUrl(proxyBaseUrl);
        config.setGlobal(geoserver);
        return config;
    }
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

        if ( f == null ) {
            //assume 2.x style
            f = resourceLoader.find( "global.xml");
            if ( f != null ) {
                BufferedInputStream in = new BufferedInputStream( new FileInputStream( f ) );
                GeoServerInfoImpl global = (GeoServerInfoImpl) xpf.createXMLPersister().load( in, GeoServerInfo.class );
                // fill in default collection values if needed
                //JD: this should not be here, it should be moved to a resolve() method
                // on GeoServer, like the way the catalog does it
                if(global.getMetadata() == null)
                    global.setMetadata(new MetadataMap());
                if(global.getClientProperties() == null)
                    global.setClientProperties(new HashMap<Object, Object>());
                geoServer.setGlobal( global );   
            }
           
            //load logging
            f = resourceLoader.find( "logging.xml" );
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

            //assume 2.x style
            f = resourceLoader.find( "global.xml");
            if ( f != null ) {
                BufferedInputStream in = new BufferedInputStream( new FileInputStream( f ) );
                try {
                    GeoServerInfoImpl global =
                        (GeoServerInfoImpl) xpf.createXMLPersister().load( in, GeoServerInfo.class );
                    geoServer.setGlobal( global );
                }
                finally {
                    in.close();
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

        }
    }
   

    public void testSetClientPropsHasEffect() throws Exception {
        GeoServerInfoImpl gsii = new GeoServerInfoImpl(geoServer);
        Map<Object, Object> before = gsii.getClientProperties();
       
        Map<Object, Object> newProps = new HashMap<Object, Object>();
        newProps.put("123", "456");
    gsii.setClientProperties(newProps);
   
    assertFalse(before.equals(newProps));
    }
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

        filter = null;
    }

    protected GeoServer getMockGeoServer(final String proxyBaseUrl) {
        GeoServerImpl config = new GeoServerImpl();
        GeoServerInfoImpl geoserver = new GeoServerInfoImpl(config);
        geoserver.setProxyBaseUrl(proxyBaseUrl);
        config.setGlobal(geoserver);
        return config;
    }
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

     * modify their state before running the assertions
     */
    protected void setUp() throws Exception {
        geosConfig = new GeoServerImpl();

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

        wmsInfo = new WMSInfoImpl();
        geosConfig.add(wmsInfo);
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

    }
   

    @Test
    public void testSetClientPropsHasEffect() throws Exception {
        GeoServerInfoImpl gsii = new GeoServerInfoImpl(geoServer);
        Map<Object, Object> before = gsii.getClientProperties();
       
        Map<Object, Object> newProps = new HashMap<Object, Object>();
        newProps.put("123", "456");
    gsii.setClientProperties(newProps);
   
    assertFalse(before.equals(newProps));
    }
View Full Code Here

Examples of org.geoserver.config.impl.GeoServerInfoImpl

        catalog.setResourcePool(resourcePool);

        mockGeoServer = new GeoServerImpl();
        mockGeoServer.setCatalog(catalog);

        GeoServerInfoImpl geoserverInfo = new GeoServerInfoImpl(mockGeoServer);
        geoserverInfo.setId("geoserver");
        mockGeoServer.setGlobal(geoserverInfo);

        WMSInfoImpl wmsInfo = new WMSInfoImpl();
        wmsInfo.setId("wms");
        wmsInfo.setName("WMS");
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.