wcsrequest.java

来自「电子地图服务器,搭建自己的地图服务」· Java 代码 · 共 59 行

JAVA
59
字号
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org.  All rights reserved.
 * This code is licensed under the GPL 2.0 license, availible at the root
 * application directory.
 */
package org.vfny.geoserver.wcs.requests;

import org.vfny.geoserver.Request;
import org.vfny.geoserver.global.GeoServer;
import org.vfny.geoserver.global.WCS;
import org.vfny.geoserver.wcs.servlets.WCService;


/**
 * DOCUMENT ME!
 *
 * @author $Author: Alessio Fabiani (alessio.fabiani@gmail.com) $ (last modification)
 * @author $Author: Simone Giannecchini (simboss1@gmail.com) $ (last modification)
 */
public class WCSRequest extends Request {
    public static final String WCS_SERVICE_TYPE = "WCS";

    /**
     * A WCSRequest configured with WCS_SERVICE_TYPE
     */
    public WCSRequest(String requestType, WCService service) {
        super(WCS_SERVICE_TYPE, requestType, service);
    }

    /**
     * Sets the wcs service object.
     */
    public void setWCService(WCService wcs) {
        setServiceRef(wcs);
    }

    /**
     * Returns the wcs service object..
     */
    public WCService getWCService() {
        return (WCService) getServiceRef();
    }

    /**
     * Convenience method for obtaining the global wcs service instance.
     */
    public WCS getWCS() {
        return getWCService().getWCS();
    }

    /**
     * Convenience method for obtaining the global geoserver instance.
     */
    public GeoServer getGeoServer() {
        GeoServer gs = getWCS().getGeoServer();

        return gs;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?