capabilitiesrequest.java

来自「world wind java sdk 源码」· Java 代码 · 共 81 行

JAVA
81
字号
/*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 + =
减小字号Ctrl + -
显示快捷键?