Package org.geoserver.wps

Source Code of org.geoserver.wps.WPSLegacyLoader

/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.wps;

import org.geoserver.config.GeoServer;
import org.geoserver.config.util.LegacyServiceLoader;
import org.geoserver.config.util.LegacyServicesReader;
import org.geotools.util.Version;

public class WPSLegacyLoader extends LegacyServiceLoader<WPSInfo> {

    public Class<WPSInfo> getServiceClass() {
        return WPSInfo.class;
    }
   
    public WPSInfo load(LegacyServicesReader reader, GeoServer geoServer)
            throws Exception {
       
        WPSInfoImpl wps = new WPSInfoImpl();
        wps.setId("wps");
        wps.setGeoServer(geoServer);
        wps.getVersions().add( new Version( "1.0.0") );
       
        return wps;
    }

}
TOP

Related Classes of org.geoserver.wps.WPSLegacyLoader

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.