⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 capabilitiesrequest.java

📁 world wind java sdk 源码
💻 JAVA
字号:
/*Copyright (C) 2001, 2006 United States Governmentas represented by the Administrator of theNational Aeronautics and Space Administration.All Rights Reserved.*/package gov.nasa.worldwind.wms;import gov.nasa.worldwind.util.Logging;import java.net.*;/** * @author tag * @version $Id: CapabilitiesRequest.java 9306 2009-03-11 20:05:32Z tgaskins $ */public final class CapabilitiesRequest extends Request{    /**     * Construct an OGC GetCapabilities request using the default service.     */    public CapabilitiesRequest()    {    }    /**     * Constructs a request for the default service, WMS, and a specified server.     *     * @param uri the address of the web service.     *     * @throws IllegalArgumentException if the uri is null.     * @throws URISyntaxException       if the web service address is not a valid URI.     */    public CapabilitiesRequest(URI uri) throws URISyntaxException    {        super(uri, null);        if (uri == null)        {            String message = Logging.getMessage("nullValue.URIIsNull");            Logging.logger().severe(message);            throw new IllegalArgumentException(message);        }    }    /**     * Constructs a request for a specified service at a specified server.     *     * @param uri     the address of the web service.     * @param service the service name. Common names are WMS, WFS, WCS, etc.     *     * @throws IllegalArgumentException if the uri or service name is null.     * @throws URISyntaxException       if the web service address is not a valid URI.     */    public CapabilitiesRequest(URI uri, String service) throws URISyntaxException    {        super(uri, service);        if (uri == null)        {            String message = Logging.getMessage("nullValue.URIIsNull");            Logging.logger().severe(message);            throw new IllegalArgumentException(message);        }        if (service == null)        {            String message = Logging.getMessage("nullValue.WMSServiceNameIsNull");            Logging.logger().severe(message);            throw new IllegalArgumentException(message);        }    }    protected void initialize(String service)    {        super.initialize(service);        this.setParam("REQUEST", "GetCapabilities");    }}

⌨️ 快捷键说明

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