📄 capabilitiesrequest.java
字号:
/* 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.util.requests;
import org.vfny.geoserver.Request;
import org.vfny.geoserver.servlets.AbstractService;
/**
* This class enforces a standard interface for GetCapabilities requests.
*
* @author Rob Hranac, TOPP
* @author Chris Holmes, TOPP
* @version $Id: CapabilitiesRequest.java 6326 2007-03-15 18:36:40Z jdeolive $
*/
public class CapabilitiesRequest extends Request {
/**
* Creates a new capabilities request object.
*
* @param serviceType The id of the service being handled.
* @param service The service handing the request.
*/
public CapabilitiesRequest(String serviceType, AbstractService service) {
super(serviceType, "GetCapabilities", service);
}
/**
* Returns a string representation of this CapabilitiesRequest.
*
* @return a string of with the service and version.
*/
public String toString() {
return "GetCapabilities [service: " + service + ", version: " + version + "]";
}
/**
* Override of equals. Just calls super.equals, since there are no extra
* fields here that aren't in Request.
*
* @param o the object to test against.
*
* @return <tt>true</tt> if o is equal to this request.
*/
public boolean equals(Object o) {
return super.equals(o);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -