com.vividsolutions.wms
Class Capabilities

java.lang.Object
  extended by com.vividsolutions.wms.Capabilities

public class Capabilities
extends java.lang.Object

Represents the capabilities WMS XML.

Author:
Chris Hodgson chodgson@refractions.net

Constructor Summary
Capabilities(WMService service, java.lang.String title, MapLayer topLayer, java.util.Collection mapFormats)
          Creates a new WMS Capabilities object.
Capabilities(WMService service, java.lang.String title, MapLayer topLayer, java.util.Collection mapFormats, java.lang.String getMapURL, java.lang.String getFeatureInfoURL)
           
 
Method Summary
 java.lang.String getGetFeatureInfoURL()
           
 java.lang.String getGetMapURL()
           
 java.lang.String[] getMapFormats()
          Gets a copy of the list of formats supported by this getMap requests for this map.
 WMService getService()
          Gets a reference to the service which these Capabilities describe.
 java.lang.String getTitle()
          Gets the title of the Capabilities.
 MapLayer getTopLayer()
          Gets the top layer for these Capabilities.
 void setGetMapURL(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Capabilities

public Capabilities(WMService service,
                    java.lang.String title,
                    MapLayer topLayer,
                    java.util.Collection mapFormats)
Creates a new WMS Capabilities object. Should generally only be used by the Parser.

Parameters:
service - the WMService to which these Capabilites belong
title - the title of this WMService
topLayer - the top MapLayer of the entire layer tree
mapFormats - the Collection of supported formats

Capabilities

public Capabilities(WMService service,
                    java.lang.String title,
                    MapLayer topLayer,
                    java.util.Collection mapFormats,
                    java.lang.String getMapURL,
                    java.lang.String getFeatureInfoURL)
Method Detail

getService

public WMService getService()
Gets a reference to the service which these Capabilities describe.

Returns:
the WMService which these Capabilities describe

getTopLayer

public MapLayer getTopLayer()
Gets the top layer for these Capabilities.

Returns:
the top MapLayer for these Capabilities

getTitle

public java.lang.String getTitle()
Gets the title of the Capabilities.

Returns:
the title of the map described by these Capabilities

getGetMapURL

public java.lang.String getGetMapURL()

getGetFeatureInfoURL

public java.lang.String getGetFeatureInfoURL()

setGetMapURL

public void setGetMapURL(java.lang.String url)

getMapFormats

public java.lang.String[] getMapFormats()
Gets a copy of the list of formats supported by this getMap requests for this map.

Returns:
an array containing the formats supported by getMap requests for this map