Package org.geotools.ows.wms
Class WMSCapabilities
- Object
-
- Capabilities
-
- WMSCapabilities
-
public class WMSCapabilities extends Capabilities
Represents a base object for a WMS getCapabilities response.- Author:
- Richard Gould, Refractions Research
-
-
Constructor Summary
Constructors Constructor Description WMSCapabilities()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getExceptions()Exceptions declare what kind of formats this server can return exceptions in.LayergetLayer()Get the root layer, the contents of the Web Map Server are the children of this layer.List<Layer>getLayerList()Access a flat view of the layers available in the WMS.WMSRequestgetRequest()The request contains information about possible Requests that can be made against this server, including URLs and formats.voidsetExceptions(String[] exceptions)voidsetLayer(Layer layer)voidsetRequest(WMSRequest request)voidsetVersion(String version)-
Methods inherited from class Capabilities
getService, getUpdateSequence, getVersion, setService, setUpdateSequence
-
-
-
-
Method Detail
-
getLayer
public Layer getLayer()
Get the root layer, the contents of the Web Map Server are the children of this layer.- Returns:
- The "root" Layer for the Web Map Server
-
setVersion
public void setVersion(String version)
- Overrides:
setVersionin classCapabilities- Parameters:
version- The version to set.
-
setLayer
public void setLayer(Layer layer)
-
getLayerList
public List<Layer> getLayerList()
Access a flat view of the layers available in the WMS.The information available here is the same as doing a top down walk of all the layers available via getLayer().
- Returns:
- List of all available layers
-
getRequest
public WMSRequest getRequest()
The request contains information about possible Requests that can be made against this server, including URLs and formats.- Returns:
- Returns the request.
-
setRequest
public void setRequest(WMSRequest request)
- Parameters:
request- The request to set.
-
getExceptions
public String[] getExceptions()
Exceptions declare what kind of formats this server can return exceptions in. They are used during subsequent requests.
-
setExceptions
public void setExceptions(String[] exceptions)
-
-