Package org.geoserver.config.impl

Examples of org.geoserver.config.impl.ContactInfoImpl


    @Before
    public void init() {
        geoServer = getGeoServer();

        ContactInfo contactInfo = new ContactInfoImpl();
        contactInfo.setAddress("1600 Pennsylvania Avenue");
        contactInfo.setAddressCity("Washington");
        contactInfo.setAddressPostalCode("20001");
        contactInfo.setAddressCountry("United States");
        contactInfo.setAddressState("DC");
       
        GeoServerInfo geoServerInfo = geoServer.getGlobal();
        SettingsInfo settingsInfo = geoServerInfo.getSettings();
        settingsInfo.setContact(contactInfo);
        geoServer.save(geoServerInfo);       
View Full Code Here


            SettingsInfoImpl obj = (SettingsInfoImpl) super.doUnmarshal(result, reader, context);
            if(obj.getMetadata() == null){
                obj.setMetadata(new MetadataMap());
            }
            if(obj.getContact() == null){
                obj.setContact(new ContactInfoImpl());
            }
            if(obj.getClientProperties() == null){
                obj.setClientProperties(new HashMap<Object, Object>());
            }
            return obj;
View Full Code Here

TOP

Related Classes of org.geoserver.config.impl.ContactInfoImpl

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.