NASA World Wind WMS

gov.nasa.worldwind.servers.wms
Class MapSource

java.lang.Object
  extended by gov.nasa.worldwind.servers.wms.MapSource

public class MapSource
extends Object

MapSource corresponds to the <MapSource> configuration elements in the WEB-INF/config.xml configuration file. The XML form for a MapSource is:

     <MapSource name=" layer name " title=" layer title ">
         <description keywords="..."> layer description </description>
         <root-dir> path to root of data directory for layer </root-dir>
         <class>...name of class implementing MapGenerator to serve layer...</class>
         <!-- zero or more properties recognized by MapGenerator class
             <property name="..." value="..." />
          -->
     </MapSource>
 

See the javadoc for the optional or required properties recognized by a specific MapGenerator implementing class.

Note that the name, title, keyword attributes, along with the description element, are used in the WMS GetCapabilities response, and are thus potentially forward-facing text strings.


Constructor Summary
MapSource(MapSource parent, String name, String title, String rootDir, Class serviceClass, String description, String keywords, Properties properties)
           
 
Method Summary
 void addChild(MapSource ms)
           
 String getCapsLayerXML()
           
 Iterator<MapSource> getChildren()
           
 String getDescription()
           
 String getFullName()
           
 String getKeywords()
           
 MapGenerator getMapGenerator()
           
 String getName()
           
 Properties getProperties()
           
 String getRootDir()
           
 Class getServiceClass()
           
 String getTitle()
           
 boolean isNamed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapSource

public MapSource(MapSource parent,
                 String name,
                 String title,
                 String rootDir,
                 Class serviceClass,
                 String description,
                 String keywords,
                 Properties properties)
Method Detail

addChild

public void addChild(MapSource ms)

getCapsLayerXML

public String getCapsLayerXML()

getChildren

public Iterator<MapSource> getChildren()

getDescription

public String getDescription()

getFullName

public String getFullName()

getKeywords

public String getKeywords()

getMapGenerator

public MapGenerator getMapGenerator()
                             throws Exception
Throws:
Exception

getName

public String getName()

getProperties

public Properties getProperties()

getRootDir

public String getRootDir()

getServiceClass

public Class getServiceClass()

getTitle

public String getTitle()

isNamed

public boolean isNamed()

NASA World Wind WMS